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 617344 - gnome-session fails to honour second-phase request for local save
gnome-session fails to honour second-phase request for local save
Product: gnome-session
Classification: Core
Component: gnome-session
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Reported: 2010-05-01 02:09 UTC by Ben Hutchings
Modified: 2021-06-14 18:22 UTC
See Also:
GNOME target: ---
GNOME version: ---

proposed fix (1.22 KB, text/plain)
2010-05-01 02:09 UTC, Ben Hutchings

Description Ben Hutchings 2010-05-01 02:09:54 UTC
Created attachment 160037 [details]
proposed fix

I found that Ion3's "restart" command fails to work when managed
by gnome-session-manager.  It requests to be saved using:

        SmcRequestSaveYourself(sm_conn, SmSaveBoth, False,
                               SmInteractStyleAny, False, False);

gnome-session immediately sends it a save request.  Ion3 responds
by asking to be saved in the second phase.  This is a bit silly in
this context but makes sense in general.  gnome-session ignores this
response and Ion3 never restarts.

The attached patch fixes this, and appears to be applicable to the
master branch.
Comment 1 André Klapper 2021-06-14 18:22:26 UTC
GNOME is going to shut down in favor of
As part of that, we are mass-closing older open tickets in
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
and create a new ticket at

Thank you for your understanding and your help.