2019-04-19 18:21:55 -04:00
|
|
|
[Unit]
|
|
|
|
Description=GNOME Shell on Wayland
|
|
|
|
# On wayland, force a session shutdown
|
|
|
|
OnFailure=gnome-shell-disable-extensions.service gnome-session-shutdown.target
|
|
|
|
OnFailureJobMode=replace-irreversibly
|
|
|
|
CollectMode=inactive-or-failed
|
|
|
|
RefuseManualStart=on
|
|
|
|
RefuseManualStop=on
|
|
|
|
|
|
|
|
After=gnome-session-manager.target
|
|
|
|
|
|
|
|
Requisite=gnome-session-initialized.target
|
|
|
|
PartOf=gnome-session-initialized.target
|
|
|
|
Before=gnome-session-initialized.target
|
|
|
|
|
|
|
|
# The units already conflict because they use the same BusName
|
|
|
|
#Conflicts=gnome-shell-x11.service
|
|
|
|
|
|
|
|
[Service]
|
2019-08-25 01:26:12 -04:00
|
|
|
Type=notify
|
2019-04-19 18:21:55 -04:00
|
|
|
ExecStart=@bindir@/gnome-shell
|
2020-03-25 16:30:46 -04:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-04-19 18:21:55 -04:00
|
|
|
# Exit code 1 means we are probably *not* dealing with an extension failure
|
|
|
|
SuccessExitStatus=1
|
|
|
|
# On wayland we cannot restart
|
|
|
|
Restart=no
|
2019-09-03 07:45:24 -04:00
|
|
|
# Kill any stubborn child processes after this long
|
|
|
|
TimeoutStopSec=5
|