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 523173 - provide option not to fork and exit if existing instance
provide option not to fork and exit if existing instance
Status: RESOLVED FIXED
Product: eog
Classification: Core
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-18 13:55 UTC by Claudio Saavedra
Modified: 2008-03-21 21:12 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
add a --wait flag (1.35 KB, patch)
2008-03-20 15:20 UTC, Claudio Saavedra
committed Details | Review

Description Claudio Saavedra 2008-03-18 13:55:23 UTC
This has been reported in Debian's BTS:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469974

"If an eog instance already exists, a new invocation of eog asks the
existing instance to handle its requests, then quits.  But this makes
eog unusable as an image viewer with mutt, which deletes the image
after viewing is done.

A program like eogclient (like emacsclient) would be an acceptable
solution.  So would a flag --wait."
Comment 1 Claudio Saavedra 2008-03-20 15:20:20 UTC
Created attachment 107680 [details] [review]
add a --wait flag

This adds the requested flag. The only two bits I'm not sure of are 1) the name of the flag and 2) the description. Suggestions, welcome, otherwise I'll simply commit.
Comment 2 Felix Riemann 2008-03-21 10:38:21 UTC
I think something like --no-reuse would be pretty descriptive for this.
A description could then be like "Do not reuse an already existing instance" or "Start a new instance instead of reusing an already started one"
Comment 3 Lucas Rocha 2008-03-21 10:53:49 UTC
Hey guys, --new-instance is much better and more descriptive. :-)
Comment 4 Claudio Saavedra 2008-03-21 21:12:57 UTC
Committed with your suggestions:

{ "new-instance", 'n', 0, G_OPTION_ARG_NONE, &wait, N_("Start a new instance instead of reusing an already started one"), NULL }

2008-03-21  Claudio Saavedra  <csaavedra@gnome.org>

        * src/main.c: (main): Add a --new-instance command line parameter.
        Fixes bug #523173.