From b689b35b7ddfd783cd08d5f506ccc83093379197 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 29 Jul 2020 16:59:32 +0200 Subject: [PATCH] data: Place the shell into session.slice when using systemd This way we conform more to https://systemd.io/DESKTOP_ENVIRONMENTS https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/895 --- data/org.gnome.Shell@wayland.service.in | 1 + data/org.gnome.Shell@x11.service.in | 1 + 2 files changed, 2 insertions(+) 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