[gnome-shell/benzea/systemd-user-units: 2/5] data: Use new systemd unit layout

commit 2f973e5922db4bd7f05d9a2395024670370860e1
Author: Benjamin Berg <bberg redhat com>
Date:   Sat Apr 20 00:21:55 2019 +0200

    data: Use new systemd unit layout
    The existing units were never used as the corresponding support was
    never merged. The new design does not currently use multiple separate
    targets for wayland and Xorg sessions.
    Note that this will likely change further in gnome-session and
    gnome-shell should make use of this to modify the restart behaviour on

 data/gnome-shell-wayland.target |  5 -----
 data/gnome-shell-x11.target     |  5 -----
 data/gnome-shell.service.in     | 27 +++++++++++++++++++++++----
 data/meson.build                |  3 +--
 4 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/data/gnome-shell.service.in b/data/gnome-shell.service.in
index ee275fa0e..4e141a70d 100644
--- a/data/gnome-shell.service.in
+++ b/data/gnome-shell.service.in
@@ -1,11 +1,30 @@
 Description=GNOME Shell
-After=graphical-session-pre.target gnome-session-bus.target
+# Limit startup frequency (see comment below)
+# XXX: On X11 we want to restart on-success (Alt+F2 + r) and on-failure
+#      while on wayland we cannot restart properly.
+#      Maybe a good approach would be to disable extensions if the shell
+#      fails in the first minute or so after logon. i.e. we define a
+#      gnome-session-stable.target which is reached after a timeout (simple
+#      unit that sleeps) and Requisite on that in the disable handler.
+# Do not wait 100ms and limit restarting more than usual
diff --git a/data/meson.build b/data/meson.build
index 138aa3ef8..df47f4c88 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -111,8 +111,7 @@ if have_systemd
     install_dir: systemd_userunitdir
-  units = files('gnome-shell-wayland.target',
-                'gnome-shell-x11.target')
+  units = files('gnome-shell.target')
   install_data(units, install_dir: systemd_userunitdir)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]