summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2015-07-14 06:30:18 (GMT)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2015-07-14 06:30:18 (GMT)
commit9c0deb7b2ddb6e4ff40f46d89d780caa26e3ae79 (patch)
tree248b0286d3a76f40b233ffab78850ae8e93f5d03
parentd8c0c5c6f9aff2b34ca369910012b2b1dcafb126 (diff)
downloaduser-session-launcher-9c0deb7b2ddb6e4ff40f46d89d780caa26e3ae79.tar.gz
user-session-launcher-9c0deb7b2ddb6e4ff40f46d89d780caa26e3ae79.tar.xz
units: Ship a user graphical.target
For a target to be started it needs a .target file just a .target.wants directory is not enough. So ship an empty default target. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am5
-rw-r--r--units/user/graphical.target5
3 files changed, 9 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 9d23bef..9e82119 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,5 +9,4 @@ install-sh
missing
units/*/*.service
units/*/*.socket
-units/*/*.target
*.tar.*
diff --git a/Makefile.am b/Makefile.am
index 4fc3673..4b8b5d4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -36,10 +36,13 @@ systemduserunitdir = @SYSTEMDUSERUNITDIR@
systemdsystemunit_DATA = \
units/system/user-session-launcher@.service
+systemduserunit_DATA = \
+ units/user/graphical.target
+
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/multi-user.target.wants
ln -sf "../user-session-launcher@.service" "$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/multi-user.target.wants/user-session-launcher@seat0-1000.service"
- $(mkinstalldirs) $(DESTDIR)$(SYSTEMDUSERUNITDIR)/user.target.wants
+ $(mkinstalldirs) $(DESTDIR)$(SYSTEMDUSERUNITDIR)/graphical.target.wants
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
diff --git a/units/user/graphical.target b/units/user/graphical.target
new file mode 100644
index 0000000..fca682a
--- /dev/null
+++ b/units/user/graphical.target
@@ -0,0 +1,5 @@
+# Graphical session for the user
+[Unit]
+Description=Graphical Interface
+Requires=default.target
+After=default.target