After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 592645 - Don't exit second instance when set as $EDITOR
Don't exit second instance when set as $EDITOR
Status: RESOLVED DUPLICATE of bug 112908
Product: gedit
Classification: Applications
Component: general
2.27.x
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-21 23:36 UTC by Andreas Moog
Modified: 2009-08-22 19:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Moog 2009-08-21 23:36:12 UTC
Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468578

Currently, the gedit binary's behaviour when called when an instance of gedit
ist already open is the following:

1) Files named on the command line open as new tabs in the existing instance
2) The new instance exits

This is problematic for most utilities using an external text editor, because
they usually

1) call $EDITOR and
2) wait for that process to exit and
3) assume that you are now finished editing the file(s).

Obviously, when EDITOR=gedit, there's a good chance that you haven't even
started editing.

Therefore, I suggest that gedit should have an additional mode specifically
for use as $EDITOR, in which the new gedit process stays open (sleeping, if
necessary) until all files mentioned on the command line have been closed in
whatever gedit instance they are being edited in.
Comment 1 André Klapper 2009-08-22 12:27:44 UTC
Please file suggestions as suggestions. Probably a duplicate.
Comment 2 Paolo Borelli 2009-08-22 19:36:02 UTC

*** This bug has been marked as a duplicate of bug 112908 ***