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 555008 - Never re-uses old instances
Never re-uses old instances
Status: RESOLVED OBSOLETE
Product: eog
Classification: Core
Component: image viewer
unspecified
Other All
: Normal enhancement
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-04 16:39 UTC by Chris Coulson
Modified: 2021-06-19 08:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Chris Coulson 2008-10-04 16:39:00 UTC
Please describe the problem:
This was initially reported at https://bugs.launchpad.net/ubuntu/+source/eog/+bug/278107

"Is there ever going to be an option that will allow only one Eye of Gnome instance? For example, I have one picture up, double-click another image in Nautilus and then it will load up that image over the previous one? It can get a little frustrating to have to close all the individual image instances. Thanks!"

In fact, I think this should already be the default behaviour in eog if it is called without the '--new-instance' option. This doesn't seem to work though, so I've filed this as a bug instead of a feature request.

Steps to reproduce:
1. Open image 1 (eog /path/to/image1)
2. Open image 2 (eog /path/to/image2)


Actual results:
We end up with 2 instances of eog running showing the 2 different images.

Expected results:
The second instance of eog should replace the first instance, because we didn't specify the '--new-instance' option.

Does this happen every time?
Yes

Other information:
eog is built with DBus
Comment 1 Felix Riemann 2008-10-06 15:18:58 UTC
Hmm, I think there is a little misunderstanding.

When you open the second image, the existing eog instance/process will be reused but will open the new image (and the folder it is in) in a new window (I guess that's where the impression of a new instance is coming from).

The "--new-instance" parameter will force eog to not reuse an existing instance and instead spawn a new process. (see bug 523173)
Comment 2 Chris Coulson 2008-10-06 15:25:27 UTC
Yes, I think I misunderstood that.

This came from a feature request in Ubuntu for eog to have an option to re-use the existing window when opening new images (much the way that Totem works I think). I misunderstood the purpose of the '--new-instance' option, which lead me to open this bug report.

Thanks for the clarification
Comment 3 liganic 2010-05-05 09:51:23 UTC
If you are still interested in the functionality you can try out the patch I wrote in bug 617735.
Comment 4 André Klapper 2021-06-19 08:45:52 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/eog/-/issues/

Thank you for your understanding and your help.