linuxmint / cinnamon-session

The Cinnamon session manager
GNU General Public License v2.0
26 stars 36 forks source link

util: Unset some environment variables on systemd #159

Closed leigh123linux closed 7 months ago

leigh123linux commented 7 months ago

Variables like GNOME_SHELL_SESSION_MODE may not always be set at login, causing them to survive between session. Add a list of variables that need to be unset, and explicitly unset them on the systemd side.

The list is taken from GDMs list of variables.

Based on https://github.com/GNOME/gnome-session/commit/b7b24627485c520f873db4e918e217a76ededd8c