add enlightenment.service temporarily to run enlightenment in system session
authorBoram Park <boram1288.park@samsung.com>
Mon, 15 Dec 2014 13:06:29 +0000 (22:06 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 18 Mar 2015 04:03:07 +0000 (13:03 +0900)
Change-Id: I3566c731e9a4f2e73738497ef8d6df1a00b58b4c

packaging/enlightenment.service [new file with mode: 0644]
packaging/enlightenment.spec

diff --git a/packaging/enlightenment.service b/packaging/enlightenment.service
new file mode 100644 (file)
index 0000000..9c30bb1
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=Enlightenment service
+After=display-manager-run.service
+Requires=display-manager-run.service
+
+[Service]
+Environment=DISPLAY=:0.0
+ExecStart=/usr/bin/enlightenment_start
+
+[Install]
+WantedBy=graphical.target
index c9e04c8cbdee73d0b858800de145b14e8c0f0e07..fc221fadaa334d740e6407e6549dbaa4650aad00 100644 (file)
@@ -9,6 +9,7 @@ Url:            http://www.enlightenment.org/
 Group:          Graphics/EFL
 Source0:        enlightenment-%{version}.tar.bz2
 Source1001:     enlightenment.manifest
+Source1002:     enlightenment.service
 BuildRequires:  doxygen
 BuildRequires:  eet-tools
 BuildRequires:  fdupes
@@ -60,6 +61,7 @@ Development files for enlightenment
 %prep
 %setup -q -n %{name}-%{version}
 cp %{SOURCE1001} .
+cp %{SOURCE1002} .
 
 
 %build
@@ -72,6 +74,11 @@ make %{?_smp_mflags}
 %install
 %make_install
 
+mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/
+mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/graphical.target.wants
+install -m 0644 %{SOURCE1002} %{buildroot}%{_prefix}/lib/systemd/system/
+ln -sf ../enlightenment.service %{buildroot}%{_prefix}/lib/systemd/system/graphical.target.wants
+rm -f %{buildroot}%{_prefix}/lib/systemd/user/enlightenment.service
 
 %find_lang enlightenment
 %fdupes  %{buildroot}/%{_libdir}/enlightenment
@@ -90,7 +97,8 @@ make %{?_smp_mflags}
 %{_datadir}/xsessions/enlightenment.desktop
 %{_sysconfdir}/xdg/menus/e-applications.menu
 %{_datadir}/applications/enlightenment_filemanager.desktop
-/usr/lib/systemd/user/enlightenment.service
+%{_prefix}/lib/systemd/system/enlightenment.service
+%{_prefix}/lib/systemd/system/graphical.target.wants/enlightenment.service
 %exclude /usr/share/enlightenment/data/config/profile.cfg
 
 %files devel