diff --git a/data/org.gnome.Shell@wayland.service.in b/data/org.gnome.Shell@wayland.service.in index 28ef7154d..427e3c807 100644 --- a/data/org.gnome.Shell@wayland.service.in +++ b/data/org.gnome.Shell@wayland.service.in @@ -14,6 +14,7 @@ PartOf=gnome-session-initialized.target Before=gnome-session-initialized.target [Service] +Slice=session.slice Type=notify # NOTE: This can be replaced with ConditionEnvironment=XDG_SESSION_TYPE=%I # with systemd >= 245. Also, the current solution is kind of painful diff --git a/data/org.gnome.Shell@x11.service.in b/data/org.gnome.Shell@x11.service.in index be2d1ff91..a70f24909 100644 --- a/data/org.gnome.Shell@x11.service.in +++ b/data/org.gnome.Shell@x11.service.in @@ -18,6 +18,7 @@ StartLimitIntervalSec=15s StartLimitBurst=3 [Service] +Slice=session.slice Type=notify # NOTE: This can be replaced with ConditionEnvironment=XDG_SESSION_TYPE=%I # with systemd >= 245. Also, the current solution is kind of painful