1 # Initialize the native application database
4 # Add 'app' user to the weston-launch group
5 /usr/sbin/groupmod -A app weston-launch
7 # Temporary work around for bug in filesystem package resulting in the 'app' user home
8 # directory being only readable by root
9 chown -R app:app /opt/home/app
11 # base-weston-default.post
12 mkdir -p /usr/lib/systemd/system/graphical.target.wants
13 ln -sf ../user-session@.service /usr/lib/systemd/system/graphical.target.wants/user-session@5000.service
14 ln -sf weston.target /usr/lib/systemd/user/default.target
16 # Add over-riding environment to enable the web runtime to
17 # run on an IVI image as a different user then the tizen user
18 # Some notes on some of the variables:
19 # - ELM_THEME is needed in order for the wrt to have visible content
20 # - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062
21 cat > /etc/sysconfig/wrt <<EOF
22 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
23 XDG_RUNTIME_DIR=/run/user/5000
24 ELM_ENGINE=wayland_egl
25 ECORE_EVAS_ENGINE=wayland_egl
26 ELM_THEME=tizen-HD-light
27 WRT_PROCESS_POOL_DISABLE=1
30 # Use the same over-rides for the native prelaunch daemon
31 cp /etc/sysconfig/wrt /etc/sysconfig/launchpad
33 # Add a rule to ensure the app user has permissions to
34 # open the graphics device
35 cat > /etc/udev/rules.d/99-dri.rules <<EOF
36 SUBSYSTEM=="drm", MODE="0666"