summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYin Kangkai <kangkai.yin@intel.com>2014-01-07 08:48:51 (GMT)
committerYin Kangkai <kangkai.yin@intel.com>2014-01-07 10:09:24 (GMT)
commit870ee509816b2eda31c14de87091a9523fede553 (patch)
tree089a160d72e865632f243aac2f99da20ec48efe6
parent4dcf036a512ff60b125f04da156a48ac7931122c (diff)
downloadtizen-mobile-session-870ee509816b2eda31c14de87091a9523fede553.zip
tizen-mobile-session-870ee509816b2eda31c14de87091a9523fede553.tar.gz
tizen-mobile-session-870ee509816b2eda31c14de87091a9523fede553.tar.bz2
systemd user session env updaterefs/changes/48/14548/2
Change-Id: Ib47eadc29c2e78a5ccffeefee0cc374f25399a8b Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
-rw-r--r--packaging/tizen-mobile-env.conf3
-rw-r--r--packaging/tizen-mobile-session.spec4
2 files changed, 7 insertions, 0 deletions
diff --git a/packaging/tizen-mobile-env.conf b/packaging/tizen-mobile-env.conf
new file mode 100644
index 0000000..b4b9c81
--- /dev/null
+++ b/packaging/tizen-mobile-env.conf
@@ -0,0 +1,3 @@
+[Service]
+Environment=DISPLAY=:0
+EnvironmentFile=/etc/sysconfig/tizen-mobile-ui
diff --git a/packaging/tizen-mobile-session.spec b/packaging/tizen-mobile-session.spec
index 44c011a..b4eeeee 100644
--- a/packaging/tizen-mobile-session.spec
+++ b/packaging/tizen-mobile-session.spec
@@ -8,6 +8,7 @@ License: Public Domain
Source0: tizen-mobile-session.target
Source1: tizen-middleware.target
Source4: tizen-generate-env.service
+Source5: tizen-mobile-env.conf
Requires: systemd
@@ -20,9 +21,11 @@ mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-mobile-session.target.wants
mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants
mkdir -p %{buildroot}%{_libdir}/systemd/system/basic.target.wants
+mkdir -p %{buildroot}%{_libdir}/systemd/system/user@.service.d
install -m 0644 %SOURCE0 %{buildroot}%{_libdir}/systemd/user/
install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
install -m 0644 %SOURCE4 %{buildroot}%{_libdir}/systemd/system/
+install -m 0644 %SOURCE5 %{buildroot}%{_libdir}/systemd/system/user@.service.d/
ln -sf ../user-session-launch@.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/user-session@seat0-5000.service
ln -sf tizen-mobile-session.target %{buildroot}%{_libdir}/systemd/user/default.target
@@ -42,3 +45,4 @@ ln -sf /run/tizen-mobile-ui %{buildroot}%{_sysconfdir}/sysconfig/tizen-mobile-ui
%{_libdir}/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
%{_libdir}/systemd/system/tizen-generate-env.service
%{_libdir}/systemd/system/basic.target.wants/tizen-generate-env.service
+%{_libdir}/systemd/system/user@.service.d/tizen-mobile-env.conf