Skip to content
Commit 9bd3c5f0 authored by Xiaoguang Wang's avatar Xiaoguang Wang Committed by Ray Strode
Browse files

gdm-{wayland,x}-session: omit GNOME_SHELL_SESSION_MODE from environment

After a user logs out, the systemd --user session may still be running
(if, say, the user session was left around in the closing state,
because of pulseaudio).

If that happens, new user sessions will inherit the environment of
previous sessions.  Some of these environment variables are already
intentionally pruned, DISPLAY, XAUTHORITY, WAYLAND_SOCKET, etc.  One
environment variable that isn't pruned, but should be, is
GNOME_SHELL_SESSION_MODE.

If it lingers, users could end up in classic mode even though they
picked the non-classic mode from the gear menu.

This commit adds GNOME_SHELL_SESSION_MODE to the list of environment
variables to prune.

(minor changes to original patch and commit message from Ray Strode)

https://bugzilla.gnome.org/show_bug.cgi?id=785918
parent 84a28ade
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment