diff options
author | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-01-17 15:15:58 +0800 |
---|---|---|
committer | Alex Wu <zhiwen.wu@linux.intel.com> | 2014-01-18 20:18:40 +0800 |
commit | 050bc1b1609fc9ca570fd2c97f8018a63df9a86c (patch) | |
tree | ee0a64d88a9ebbfb7342f01283f8a4f060c75964 | |
parent | 3644ad545979e4f23ae8ca1bd94fe4b87af235e5 (diff) | |
download | aul-1-tizen_ivi_panda.tar.gz aul-1-tizen_ivi_panda.tar.bz2 aul-1-tizen_ivi_panda.zip |
launchpad-preload@app.service set a wrong XDG_RUNTIME_DIR
environment.
We use new unit (user-session-launch@.service ) and symbol link
(user-session-launch@seat0-5000.service) to auto-trigger a user
session. This results in a environment
"XDG_RUNTIME_DIR=/run/user/5000" in the user session. But the
lauchpad service still use symbol link
"launchpad-preload@app.service" which result in a environment
"XDG_RUNTIME_DIR=/run/user/app". This make XDG_RUMTIME_DIR
dismatch between app launched by launchpad and program, e.g.
weston, launched in user session. And hence app launched by
launchpad failed at connecting socket /run/user/5000/wayland-0
that created by weston.
Change-Id: I7896dd001e9602772d96f4a20057cd90369a3a9f
Signed-off-by: Alex Wu <zhiwen.wu@linux.intel.com>
-rw-r--r-- | packaging/aul.spec | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/aul.spec b/packaging/aul.spec index 8f80d8fc..faef24a2 100644 --- a/packaging/aul.spec +++ b/packaging/aul.spec @@ -93,7 +93,7 @@ rm -rf %{buildroot}/usr/share/aul/mida_db.sql mkdir -p %{buildroot}/usr/lib/systemd/system/graphical.target.wants install -m 0644 %SOURCE101 %{buildroot}/usr/lib/systemd/system/launchpad-preload@.service install -m 0644 %SOURCE102 %{buildroot}/usr/lib/systemd/system/ac.service -ln -s ../launchpad-preload@.service %{buildroot}/usr/lib/systemd/system/graphical.target.wants/launchpad-preload@app.service +ln -s ../launchpad-preload@.service %{buildroot}/usr/lib/systemd/system/graphical.target.wants/launchpad-preload@5000.service ln -s ../ac.service %{buildroot}/usr/lib/systemd/system/graphical.target.wants/ac.service mkdir -p %{buildroot}/opt/etc/smack/accesses.d @@ -105,7 +105,7 @@ cp LICENSE %{buildroot}/usr/share/license/%{name} %preun if [ $1 == 0 ]; then - systemctl stop launchpad-preload@app.service + systemctl stop launchpad-preload@5000.service systemctl stop ac.service fi @@ -113,7 +113,7 @@ fi /sbin/ldconfig systemctl daemon-reload if [ $1 == 1 ]; then - systemctl restart launchpad-preload@app.service + systemctl restart launchpad-preload@5000.service systemctl restart ac.service fi @@ -141,7 +141,7 @@ systemctl daemon-reload /usr/share/aul/preload_list.txt /usr/share/aul/preexec_list.txt %{_bindir}/launchpad_preloading_preinitializing_daemon -/usr/lib/systemd/system/graphical.target.wants/launchpad-preload@app.service +/usr/lib/systemd/system/graphical.target.wants/launchpad-preload@5000.service /usr/lib/systemd/system/graphical.target.wants/ac.service /usr/lib/systemd/system/launchpad-preload@.service /usr/lib/systemd/system/ac.service |