7e00d22bfa
The existing units were never used as the corresponding support was never merged into gnome-session. This commits updates units to be usable with the newer gnome-session unit definitions. Also added is appropriate failure/restart logic including the ability to disable extensions. Note that extensions will only be disabled if a failure happens in the first two minutes after login. https://gitlab.gnome.org/GNOME/gnome-session/merge_requests/13 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/507
27 lines
743 B
SYSTEMD
27 lines
743 B
SYSTEMD
[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]
|
|
Type=dbus
|
|
ExecStart=@bindir@/gnome-shell
|
|
# Exit code 1 means we are probably *not* dealing with an extension failure
|
|
SuccessExitStatus=1
|
|
# On wayland we cannot restart
|
|
Restart=no
|
|
BusName=org.gnome.Shell
|