remove default vconf keys post script
[profile/ivi/meta-ivi.git] / scripts / base-weston-default.post
index c52eebc..1ccef6f 100644 (file)
@@ -1,24 +1,35 @@
-# Create sym link to work around hardcoded assumptions about home directories
-ln -s /home /opt/home
-
 # Initialize the native application database
 pkg_initdb
 
-# Create the 'app' user
-/usr/sbin/useradd -u 5000 -g users -G audio,video,weston-launch -m app
+# 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
+# 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 -sf ../user-session@.service /usr/lib/systemd/system/graphical.target.wants/user-session@5000.service
+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
 
 # 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/5000/dbus/user_bus_socket
 XDG_RUNTIME_DIR=/run/user/5000
 ELM_ENGINE=wayland_egl
 ECORE_EVAS_ENGINE=wayland_egl
+ELM_THEME=tizen-HD-light
+WRT_PROCESS_POOL_DISABLE=1
 EOF
 
 # Use the same over-rides for the native prelaunch daemon