GNOME Bugzilla – Bug 625881
Autorestart doesn't work except for autostarted applications
Last modified: 2021-06-14 18:21:38 UTC
The autorestart code in _disconnect_client requires an application ID to restart the application (e.g., for GSM_CLIENT_RESTART_IMMEDIATELY). However, I don't think we ever set an application ID except when we are autostarting an application. There is code in gsm-xsmp-client.c to to find a desktop file for an arbitrary client, but it is only called when we are saving the session. It isn't used to set the application ID for the client object on connection. This means, for example, that metacity restarts on crash if started with the session, but if you switch managers, or run 'metacity --replace' manually, it will no longer restart on crash. (See bug 569289)
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 of gnome-session, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-session/-/issues/ Thank you for your understanding and your help.