"Create New" from text editor does not work when xmgrace is launched from the GNOME menu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Grace |
Invalid
|
Undecided
|
Unassigned | ||
grace (Debian) |
Fix Released
|
Unknown
|
|||
grace (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grace
In xmgrace a new dataset can be created from en external text editor. To do so, the text editor is accessed through Edit->In Text Editor, or Create New->in text editor. Two different behaviors are observed though, depending if xmgrace is launched through the GNOME menu or from the terminal.
Xmgrace launched from the terminal: the text editor (nano) opens correctly in the terminal.
Xmgrace opened from the GNOME menu: the text editor does not open, although it is expected to.
The bug has been reported upstream, but qualified as a distro specific misconfiguration.
http://
But present in grace-5.1.22-5, on lucid.
Changed in grace (Ubuntu): | |
status: | New → Confirmed |
Changed in grace (Debian): | |
status: | Unknown → Fix Committed |
Changed in grace (Debian): | |
status: | Fix Committed → Fix Released |
The problem is in the fact that when the text-editor is launched within grace, the command:
sensible-editor
is issued. If grace itself was launched through the terminal, nano opens fine. However, when grace was opened through the GNOME menu, nothing happens. So the problem is related to the fact that nano can only be launched from the terminal. When launched as a regular, non-terminal application a new terminal should open with nano running in it, which does not happen.
I attach two patches, with two different workarounds:
1. text_editor_ gnome.diff: I modified the gnome launcher (grace.desktop) to launch xmgrace as an application in the terminal (rather than a regular application). This allows nano to run.
2. text_editor.diff: I revert the debian configuration to the upstream default. Basically I removed the line:
--with- editor= sensible- editor \
from debian/rules. In this case, the editor (vim) opens with no problems, and regardless on how grace was launched. I personally like #2 better...