summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-28 23:53:24 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-30 18:14:26 +0900
commitcd28bc814552bf52bb670e108343b23d48fa839e (patch)
tree8119c42e8ad25f496aa500fafec79b0d91e21060 /data
parent3f34680b7a438e9db6d2fcb3b29697f87a33f1b5 (diff)
e: add support for systemd user session.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am4
-rw-r--r--data/units/Makefile.am9
-rw-r--r--data/units/e18.service27
3 files changed, 39 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index f320e9deb..dbd5a42fa 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -10,4 +10,6 @@ icons \
10backgrounds \ 10backgrounds \
11flags \ 11flags \
12favorites \ 12favorites \
13desktop 13desktop \
14units
15
diff --git a/data/units/Makefile.am b/data/units/Makefile.am
new file mode 100644
index 000000000..04ed87fb4
--- /dev/null
+++ b/data/units/Makefile.am
@@ -0,0 +1,9 @@
1AUTOMAKE_OPTIONS = 1.4 foreign
2MAINTAINERCLEANFILES = Makefile.in
3
4if HAVE_SYSTEMD_USER_SESSION
5unitsdir = $(USER_SESSION_DIR)
6units_DATA = e18.service
7endif
8
9EXTRA_DIST = $(units_DATA)
diff --git a/data/units/e18.service b/data/units/e18.service
new file mode 100644
index 000000000..79feb4062
--- /dev/null
+++ b/data/units/e18.service
@@ -0,0 +1,27 @@
1[Unit]
2Description=Enlightenment 17 service
3Before=end.target
4After=xorg.target
5Requires=xorg.target
6Requires=dbus.socket
7Requires=pulseaudio.service
8Requires=ssh-agent.service
9AllowIsolate=true
10
11[Service]
12Type=notify
13#Environment=PATH=uncomment:to:override:your:PATH
14Environment=E_START=enlightenment
15ExecStart=/usr/bin/enlightenment
16Restart=always
17RestartPreventExitStatus=0
18RestartSec=2
19StartLimitInterval=30
20StartLimitBurst=7
21KillMode=process
22WatchdogSec=1
23TimeoutSec=1
24NotifyAccess=all
25
26[Install]
27WantedBy=wm.target