2019-04-19 22:21:55 +00:00
|
|
|
[Unit]
|
|
|
|
Description=GNOME Shell on X11
|
|
|
|
# On X11, try to show the GNOME Session Failed screen
|
2020-02-13 17:39:32 +00:00
|
|
|
OnFailure=org.gnome.Shell-disable-extensions.service gnome-session-failed.target
|
2019-04-19 22:21:55 +00:00
|
|
|
OnFailureJobMode=replace
|
|
|
|
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
|
|
|
|
|
2023-06-07 07:59:25 +00:00
|
|
|
#NOTE: ConditionEnvironment works with systemd >= 246
|
|
|
|
ConditionEnvironment=XDG_SESSION_TYPE=%I
|
|
|
|
|
2019-04-19 22:21:55 +00:00
|
|
|
# Limit startup frequency more than the default
|
|
|
|
StartLimitIntervalSec=15s
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Service]
|
2020-07-29 14:59:32 +00:00
|
|
|
Slice=session.slice
|
2019-08-25 05:26:12 +00:00
|
|
|
Type=notify
|
2019-04-19 22:21:55 +00:00
|
|
|
ExecStart=@bindir@/gnome-shell
|
|
|
|
# Exit code 1 means we are probably *not* dealing with an extension failure
|
|
|
|
SuccessExitStatus=1
|
2020-06-09 11:01:39 +00:00
|
|
|
|
|
|
|
# On X11 we do not need to unset any variables
|
|
|
|
|
2019-04-19 22:21:55 +00:00
|
|
|
# On X11 we want to restart on-success (Alt+F2 + r) and on-failure.
|
|
|
|
Restart=always
|
|
|
|
# Do not wait before restarting the shell
|
|
|
|
RestartSec=0ms
|
2019-09-03 11:45:24 +00:00
|
|
|
# Kill any stubborn child processes after this long
|
|
|
|
TimeoutStopSec=5
|
2022-12-12 07:21:23 +00:00
|
|
|
|
|
|
|
# Lower down gnome-shell's OOM score to avoid being killed by OOM-killer too early
|
|
|
|
OOMScoreAdjust=-1000
|