283d067a8c9651180b2cab187d70cb1f3ef386c3
[profile/ivi/meta-ivi.git] / scripts / ivi-ux-weston.post
1 #!/bin/sh
2 echo "#################### ivi-ux-weston.post ####################"
3
4 usermod -G weston-launch app
5
6 # Enable a logind session for 'app' user on seat0 (the default seat for
7 # graphical sessions)
8 mkdir -p /usr/lib/systemd/system/graphical.target.wants
9 ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
10 ln -sf weston.target  /usr/lib/systemd/user/default.target