diff --git a/data/gnome-shell-wayland.service.in b/data/gnome-shell-wayland.service.in index 04f94af2d64e375cdd7d2def78885d6ff60a2313..100be7f0f1854c29a59a5329b0621eb77cdc92c6 100644 --- a/data/gnome-shell-wayland.service.in +++ b/data/gnome-shell-wayland.service.in @@ -19,6 +19,10 @@ Before=gnome-session-initialized.target [Service] Type=notify ExecStart=@bindir@/gnome-shell + +# unset some environment variables that were set by the shell and won't work now that the shell is gone +ExecStopPost=-systemctl --user unset-environment GNOME_SETUP_DISPLAY WAYLAND_DISPLAY DISPLAY XAUTHORITY + # Exit code 1 means we are probably *not* dealing with an extension failure SuccessExitStatus=1 # On wayland we cannot restart