Fixes for multi-seat sandbox/jlaako/multiseat
authorJussi Laako <jussi.laako@linux.intel.com>
Thu, 13 Nov 2014 14:09:43 +0000 (16:09 +0200)
committerJussi Laako <jussi.laako@linux.intel.com>
Thu, 13 Nov 2014 14:09:43 +0000 (16:09 +0200)
scripts/base-weston-default.post
scripts/ivi-adaptation.post
scripts/ivi-ux-weston.post

index e899132..14705da 100644 (file)
@@ -3,13 +3,7 @@ pkg_initdb
 
 # adjust app group: main group 'users', extra group 'app', 'weston-launch'
 /usr/sbin/usermod -g users app
-/usr/sbin/usermod -G app,weston-launch app
-
-# 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
+/usr/sbin/usermod -G app,weston-launch,video app
 
 # Add over-riding environment to enable the web runtime to
 # run on an IVI image as a different user then the tizen user
index 464b667..1f9fa6d 100644 (file)
@@ -4,9 +4,12 @@ echo "#################### ivi-adaptations.post ####################"
 #replace "Tizen Next" with real release number.
 sed -i 's/(\(.*\))/(@BUILD_ID@)/' /etc/os-release
 
+# create genivi user
+useradd -c "GENIVI user" -d /home/genivi -G weston-launch,video -s /bin/sh -m genivi
+
 # create user 'app' and group 'app', dropped from platfrom/upstream/setup
 groupadd -g 5000 app 
-useradd -c "System based user" -d /home/app -g users -G app -m -u 5000 -s /bin/sh app
+useradd -c "System based user" -d /home/app -g users -G app,video,weston-launch -m -u 5000 -s /bin/sh app
 
 # adjust TZ_SYS_DEFAULT_USER to 'app'
 sed -ri 's|^(TZ_SYS_DEFAULT_USER=).*$|\1app|' /etc/tizen-platform.conf
index 283d067..f1c4783 100644 (file)
@@ -1,10 +1,4 @@
 #!/bin/sh
 echo "#################### ivi-ux-weston.post ####################"
 
-usermod -G weston-launch app
-
-# 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
+usermod -G weston-launch,video app