[gnome-session/benzea/systemd-new-session-config] data: Add ready target for X11 services
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session/benzea/systemd-new-session-config] data: Add ready target for X11 services
- Date: Wed, 15 Jul 2020 16:09:02 +0000 (UTC)
commit 836d037bac38d29bd882f4b816c410cc442d0b68
Author: Benjamin Berg <bberg redhat com>
Date: Wed Jul 15 18:07:42 2020 +0200
data: Add ready target for X11 services
This is a bit painful, but to do proper shutdown, we need an
After=gnome-session-x11-services.target, but we also need to be able to
tell gnome-shell when the services are ready. So add a special
gnome-session-x11-services-ready.target which will be used by
org.gnome.SettingsDaemon.XSettings.service.
data/gnome-session-x11-services-ready.target | 8 ++++++++
data/gnome-session-x11-services.target | 5 ++++-
data/meson.build | 1 +
3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/data/gnome-session-x11-services-ready.target b/data/gnome-session-x11-services-ready.target
new file mode 100644
index 00000000..371e1730
--- /dev/null
+++ b/data/gnome-session-x11-services-ready.target
@@ -0,0 +1,8 @@
+[Unit]
+Description=GNOME session X11 services
+DefaultDependencies=no
+
+BindsTo=gnome-session-x11-services.target
+After=gnome-session-x11-services.target
+
+Before=gnome-session.target
diff --git a/data/gnome-session-x11-services.target b/data/gnome-session-x11-services.target
index 520f85a0..5c63db5f 100644
--- a/data/gnome-session-x11-services.target
+++ b/data/gnome-session-x11-services.target
@@ -5,4 +5,7 @@ DefaultDependencies=no
Requisite=gnome-session-initialized.target
After=gnome-session-initialized.target
PartOf=gnome-session-initialized.target
-Before=gnome-session.target
+
+Requisite=gnome-session-x11-services-ready.target
+Before=gnome-session-x11-services-ready.target
+PartOf=gnome-session-x11-services-ready.target
diff --git a/data/meson.build b/data/meson.build
index 2cc62cd0..213ce22d 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -113,6 +113,7 @@ if enable_systemd_session
'gnome-session-x11@.target',
'gnome-session-x11.target',
'gnome-session-x11-services.target',
+ 'gnome-session-x11-services-ready.target',
'gnome-session@.target',
'gnome-session.target',
'gnome-session-pre.target',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]