GNOME Bugzilla – Bug 444872
Clever duplicate removal is not clever enough
Last modified: 2020-10-30 14:32:22 UTC
There is a problem with the clever duplicate removal code that was introduced in r4349 to fix bug#341286. Some applications are not removed why they should, which leads to some cases of session hanging. For example, if epiphany appears twice with different arguments, only the first instance will really be launched. The second one will just exit after adding stuff to the first one, and this will lead to the session manager waiting hopelessly for it to register. Of course such applications shouldn't appear twice in the session, but - don't ask me why - it happens. A case was reported with openbox, and there's another one that I couldn't identify yet. As openbox is the WM, the timeout occurs early in the login process, even before nautilus and gnome-panel are launched. See http://bugs.debian.org/425742 (although the real finding was done on IRC). A good solution may be to make the session manager only wait for the first instance of an application when there are several ones.
Assuming that this problem is obsolete nowadays. If you can still reproduce this problem with a recent version (currently: 3.38) of GNOME / gnome-session, then please report this at https://gitlab.gnome.org/GNOME/gdm/-/issues/ and follow https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines - thanks a lot!