Skip to content

data: ensure systemd environment is sanitized when shell exits

Ray Strode requested to merge wip/clean-the-slate into master

When mutter is acting as a display server it sets a number of environment variables in the user's session. These variables tell applications where the display server's sockets are.

When the shell exits at logout time it leaves these environment variables in the systemd --user environment, which can confuse subsequent sessions.

This commit clears up the environment on exit.

See https://bugzilla.redhat.com/show_bug.cgi?id=1815487

Merge request reports