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 579064 - doesn't emit the SessionOver signal
doesn't emit the SessionOver signal
Status: RESOLVED OBSOLETE
Product: gnome-session
Classification: Core
Component: gnome-session
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-15 15:38 UTC by Matthias Clasen
Modified: 2021-06-14 18:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Emit session-over signal in PHASE_END_SESSION (752 bytes, patch)
2009-08-13 12:06 UTC, Neil Jagdish Patel
none Details | Review

Description Matthias Clasen 2009-04-15 15:38:07 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=495904

gnome-session doesn't send the SessionOver signal at all. It's never emitted in
gsm-manager.c at all. If gnome-session emitted that, it would be a trivial
patch to gnome-power-manager to exit when this signal is emitted. Reassigning,
and then when g-s is fixed we can trivially patch g-p-m.
Comment 1 Matthias Clasen 2009-04-15 18:46:22 UTC
Even if SessionOver turns out to not be the right signal to use for g-p-m, we should still

- implement the SessionRunning / SessionOver signals or remove them from the interface

- update the spec to include the signals
Comment 2 Neil Jagdish Patel 2009-08-13 12:06:27 UTC
Created attachment 140651 [details] [review]
Emit session-over signal in PHASE_END_SESSION

Attached patch fixes this bug for the simple case of an app being able to exit cleanly without having to EggSMClient.

I've added the emission to the PHASE_END_SESSION phase. Don't have an exceptional reason for not putting it in PHASE_EXIT, other than I assume this way gives the listening apps a bit more time to exit cleanly.
Comment 3 Vincent Untz 2009-08-13 13:21:00 UTC
I would actually put it before do_phase_end_session(). This way we send the signal, and then tell apps "really, good bye".

FWIW, there's no guarantee that there will be no interaction with the user afterwards at the moment. It's possible that you'll get a PK prompt for reboot/shutdown, depending on how ConsoleKit is configured.
Comment 4 André Klapper 2021-06-14 18:20:32 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 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.