From: Jussi Laako Date: Thu, 13 Nov 2014 14:09:43 +0000 (+0200) Subject: Fixes for multi-seat X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3de7c1c92225aa5ba22788f7e7538d7685dd5e4;p=profile%2Fivi%2Fmeta-ivi.git Fixes for multi-seat --- diff --git a/scripts/base-weston-default.post b/scripts/base-weston-default.post index e899132..14705da 100644 --- a/scripts/base-weston-default.post +++ b/scripts/base-weston-default.post @@ -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 diff --git a/scripts/ivi-adaptation.post b/scripts/ivi-adaptation.post index 464b667..1f9fa6d 100644 --- a/scripts/ivi-adaptation.post +++ b/scripts/ivi-adaptation.post @@ -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 diff --git a/scripts/ivi-ux-weston.post b/scripts/ivi-ux-weston.post index 283d067..f1c4783 100644 --- a/scripts/ivi-ux-weston.post +++ b/scripts/ivi-ux-weston.post @@ -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