This has a few advantages over the current approach:
- only depends on user-session-units, not the flawed systemd-user-units
- allows isolating the target to switch between e.g. e17 and e18 at
runtime
- works much more reliably for me
Important: please don't commit without review by Cedric!
---
data/units/Makefile.am | 6 +++++-
data/units/e18.service | 9 +++------
data/units/e18.target | 6 ++++++
3 files changed, 14 insertions(+), 7 deletions(-)
create mode 100644 data/units/e18.target
diff --git a/data/units/Makefile.am b/data/units/Makefile.am
index 04ed87f..fd4190e 100644
--- a/data/units/Makefile.am
+++ b/data/units/Makefile.am
@@ -3,7 +3,11 @@ MAINTAINERCLEANFILES = Makefile.in
if HAVE_SYSTEMD_USER_SESSION
unitsdir = $(USER_SESSION_DIR)
-units_DATA = e18.service
+units_DATA = e18.service e18.target
+
+install-data-hook:
+ $(mkinstalldirs) $(DESTDIR)$(USER_SESSION_DIR)/e18.target.wants
+ @ln -sf e18.service $(DESTDIR)$(USER_SESSION_DIR)/e18.target.wants/
endif
EXTRA_DIST = $(units_DATA)
diff --git a/data/units/e18.service b/data/units/e18.service
index ad413b9..d4c3441 100644
--- a/data/units/e18.service
+++ b/data/units/e18.service
@@ -1,12 +1,9 @@
[Unit]
-Description=Enlightenment 18 service
-Before=end.target
+Description=The Enlightenment Window Manager
After=xorg.target
-Requires=xorg.target
+Before=exit.target
Requires=dbus.socket
Wants=pulseaudio.service
-Wants=ssh-agent.service
-AllowIsolate=true
[Service]
Type=notify
@@ -24,4 +21,4 @@ TimeoutSec=5
NotifyAccess=all
[Install]
-WantedBy=wm.target
+WantedBy=e18.target
diff --git a/data/units/e18.target b/data/units/e18.target
new file mode 100644
index 0000000..ac9c340
--- /dev/null
+++ b/data/units/e18.target
@@ -0,0 +1,6 @@
+
+[Unit]
+Description=The Englightenment Desktop Environment built on EFL
+Wants=xorg.target
+Requires=dbus.socket
+AllowIsolate=true
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel