X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fbase-weston-default.post;h=14705daf91e68651beed494977b08247fde610b2;hb=d3de7c1c92225aa5ba22788f7e7538d7685dd5e4;hp=f3ec1951ae18c52876c9610cf3038a60cff0090c;hpb=78137bac474edb1fdd26b31a1490a15731c9cccf;p=profile%2Fivi%2Fmeta-ivi.git diff --git a/scripts/base-weston-default.post b/scripts/base-weston-default.post index f3ec195..14705da 100644 --- a/scripts/base-weston-default.post +++ b/scripts/base-weston-default.post @@ -1,21 +1,9 @@ # Initialize the native application database pkg_initdb -# Add 'app' user to the weston-launch group -/usr/sbin/groupmod -A app weston-launch - -# Temporary work around for bug in filesystem package resulting in the 'app' user home -# directory being only readable by root -chown -R app:app /opt/home/app - -# Since weston-launch runs with the "User" label, the app -# home dir must have the same label -chsmack -a User /opt/home/app - -# base-weston-default.post -mkdir -p /usr/lib/systemd/system/graphical.target.wants -ln -sf ../user-session@.service /usr/lib/systemd/system/graphical.target.wants/user-session@5000.service -ln -sf weston.target /usr/lib/systemd/user/default.target +# adjust app group: main group 'users', extra group 'app', 'weston-launch' +/usr/sbin/usermod -g users app +/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 @@ -33,9 +21,3 @@ EOF # Use the same over-rides for the native prelaunch daemon cp /etc/sysconfig/wrt /etc/sysconfig/launchpad - -# Add a rule to ensure the app user has permissions to -# open the graphics device -cat > /etc/udev/rules.d/99-dri.rules <