session-cleanup-script runs on user selection in greeter

Bug #1699972 reported by nicholas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LightDM GTK Greeter
New
Unknown

Bug Description

When setting a session-cleanup-script, it runs perfectly fine when a user logs out. However, it also runs when no users are logged in, and a different user is selected from the dropdown menu of user on the login screen.

This is really problematic when, for example, you want to run /sbin/reboot with session-cleanup-script. Not only does the machine reboot when a user logs off, it also reboots when someone attempting to log in selects a different user from the dropdown menu on the login screen.

The script assigned to session-cleanup-script should only run when a user session is terminated. The description for session-cleanup-script reads "Script to run when quitting a user session (runs as root)." Thus, one would assume it should not be running when a different user is selected from the login greeter.

Sean Davis (bluesabre)
Changed in lightdm-gtk-greeter:
importance: Undecided → Unknown
status: New → Unknown
Changed in lightdm-gtk-greeter:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.