GNOME Bugzilla – Bug 794075
PostSession not run if session closed by shutdown or restart
Last modified: 2018-05-24 11:46:50 UTC
PostSession/Default is not run if the session is ended by shutdown or reboot. It only gets run when doing a logout. To reproduce, write the following content to /etc/gdm3/PostSession/Default #!/bin/sh touch /var/log/gdm-postsession-timestamp exit 0 When shutting down or rebooting, the file is not touched. When logging out, it is touched. I have tested this on Ubuntu xenial with GDM 3.18.3 and Fedora 27 with GDM 3.26.2. The patch from https://bugzilla.gnome.org/show_bug.cgi?id=621581 does not work. The patch from https://bugzilla.gnome.org/show_bug.cgi?id=681888 does not work.
Created attachment 369336 [details] [review] session-worker: don't kill process group before running PostSession killing the process group leads to the worker getting terminated, so defer that until after running the PostSession script.
can you give this patch a try ^ ?
doesn't apply with gdm 3.18.3 tested with gdm 3.26.2 /etc/gdm3/PostSession/Default is still not executed on reboot/shutdown...
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/363.