Fixes for multi-seat
[profile/ivi/meta-ivi.git] / scripts / base-weston-default.post
index 82a9b52..14705da 100644 (file)
@@ -1,13 +1,23 @@
-# 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@1000.service
-ln -sf weston.target  /usr/lib/systemd/user/default.target
+# Initialize the native application database
+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,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
+# Some notes on some of the variables:
+#  - ELM_THEME is needed in order for the wrt to have visible content
+#  - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062
 cat > /etc/sysconfig/wrt <<EOF
-DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/dbus/user_bus_socket
-XDG_RUNTIME_DIR=/run/user/1000
+DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
+XDG_RUNTIME_DIR=/run/user/5000
 ELM_ENGINE=wayland_egl
 ECORE_EVAS_ENGINE=wayland_egl
-EOF
\ No newline at end of file
+ELM_THEME=tizen-HD-light
+WRT_PROCESS_POOL_DISABLE=1
+EOF
+
+# Use the same over-rides for the native prelaunch daemon
+cp /etc/sysconfig/wrt /etc/sysconfig/launchpad