Workaround systemd bug of user sessions 23/37523/1 accepted/tizen_3.0.2015.q1_common tizen_3.0.2015.q1_common accepted/tizen/3.0.2015.q1/common/20150331.090921 accepted/tizen/common/20150331.090941 submit/tizen_3.0.2015.q1_common/20150331.090814 submit/tizen_common/20150331.090400
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 30 Mar 2015 11:40:00 +0000 (13:40 +0200)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 30 Mar 2015 11:40:00 +0000 (13:40 +0200)
Systemd (up to at least 2.19) has a bug in stopping and
restarting user sessions. This patch fix it in a such way
the session is never closed.

Change-Id: I348fae16d43f3746627d2181b4d579fe5f77bd25
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
data/tizen-common/etc/session.d/user-session

index 186de65..436fc9a 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/sh -l
 #
 ln -sf /run/display/wayland-0 /run/user/$UID/
-exec /usr/bin/tz-launcher -c /usr/share/applications/tizen/launcher.conf $HOME/.applications/desktop
+while true
+do
+  /usr/bin/tz-launcher -c /usr/share/applications/tizen/launcher.conf $HOME/.applications/desktop
+done