diff options
author | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-01-17 16:44:08 +0800 |
---|---|---|
committer | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-01-18 23:27:20 +0800 |
commit | a5a139f7a3346578b83c0799ec5be6225f7abb2e (patch) | |
tree | e21ef6e9e028a69ee48edefa850d12dc6e5844bd /packaging/tizen-mobile-session.spec | |
parent | cb09bff76f91c616f9d120229fd645246906d20b (diff) | |
download | tizen-mobile-session-a5a139f7a3346578b83c0799ec5be6225f7abb2e.tar.gz tizen-mobile-session-a5a139f7a3346578b83c0799ec5be6225f7abb2e.tar.bz2 tizen-mobile-session-a5a139f7a3346578b83c0799ec5be6225f7abb2e.zip |
Make adding the X specific environment conditional.submit/tizen/20140120.072901accepted/tizen/mobile/20140122.162757accepted/tizen/mobile
"DISPLAY=:0" is a environment specific to X display server, it is
unnecessary for wayland case. So add this environment only if "with x"
defined in project configuration.
Change-Id: I553a2bbb0a1e8f629e5c18c44fcf4089da20a96e
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
Diffstat (limited to 'packaging/tizen-mobile-session.spec')
-rw-r--r-- | packaging/tizen-mobile-session.spec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/tizen-mobile-session.spec b/packaging/tizen-mobile-session.spec index a998727..8d4e50f 100644 --- a/packaging/tizen-mobile-session.spec +++ b/packaging/tizen-mobile-session.spec @@ -1,4 +1,5 @@ %bcond_with emulator +%bcond_with x Name: tizen-mobile-session Summary: Target for tizen systemd user session Version: 2 @@ -27,6 +28,10 @@ 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/ +%if %{with x} +echo "Environment=DISPLAY=:0" >> %{buildroot}%{_libdir}/systemd/system/user@.service.d/tizen-mobile-env.conf +%endif + ln -sf ../user-session-launch@.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service ln -sf tizen-mobile-session.target %{buildroot}%{_libdir}/systemd/user/default.target ln -sf ../tizen-generate-env.service %{buildroot}%{_libdir}/systemd/system/basic.target.wants |