GNOME Bugzilla – Bug 555008
Never re-uses old instances
Last modified: 2021-06-19 08:45:52 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
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)
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
If you are still interested in the functionality you can try out the patch I wrote in bug 617735.
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.