Disable linger workaround; enable the new logind session service 38/13938/2 accepted/tizen/ivi/20131219.023357 accepted/tizen/ivi/20131219.042755 accepted/tizen/ivi/20131220.021842 submit/accepted/tizen/ivi/20140102.200047 submit/tizen/20131218.210434 submit/tizen/20131219.042821 submit/tizen/20131219.065019 submit/tizen/20131220.021950 submit/tizen/20140102.200611
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 18 Dec 2013 17:07:29 +0000 (09:07 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Wed, 18 Dec 2013 18:49:30 +0000 (10:49 -0800)
With the new logind session service (from the user-session-units
package) in place, the linger instance is no longer needed.

Change-Id: Id1cb54f97218497d406ee37646bfc1914285d692
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
scripts/base-weston-default.post

index ba6bef9..1ccef6f 100644 (file)
@@ -12,14 +12,12 @@ chown -R app:app /opt/home/app
 # home dir must have the same label
 chsmack -a User /opt/home/app
 
-# base-weston-default.post
+# Enable a logind session for 'app' user on seat0 (the default seat for
+# graphical sessions)
 mkdir -p /usr/lib/systemd/system/graphical.target.wants
+ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
 ln -sf weston.target  /usr/lib/systemd/user/default.target
 
-# Enable user@5000.service by setting the linger for user 'app'
-mkdir -p /var/lib/systemd/linger
-touch /var/lib/systemd/linger/app
-
 # Add over-riding environment to enable the web runtime to
 # run on an IVI image as a different user then the tizen user
 # Some notes on some of the variables: