From d029906705384cf960c3a8292fdcb989ac295bea Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Fri, 5 Sep 2014 18:11:21 +0200 Subject: [PATCH] meta-tizen: add user to weston-ivi-shell Change-Id: I5e0282ef0ce137311d5ca208daceadfcdaab3e6f (From meta-tizen rev: a04b04e3ed75a0225bfb46280d17ade2c33b847e) Signed-off-by: Ronan Le Martret Signed-off-by: Patrick Ohly --- .../weston-ivi-shell/weston-ivi-shell-extraconf.inc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc b/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc index 5365601..cc17cc5 100644 --- a/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc +++ b/meta-tizen/recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc @@ -1,3 +1,8 @@ +inherit useradd + +USERADD_PARAM_${PN} += " -d /home/app -m -u 5000 -g users -G users,display -r -s /bin/sh app " +USERADD_PARAM_${PN} += " -d /home/guest -m -u 9999 -g users -G users,display -r -s /bin/sh guest; " + do_configure_prepend() { # pkg-config check for wayland scanner even though it is present and wayland-scanner.pc seems ok. sed -i 's/PKG_CHECK_MODULES(WAYLAND_SCANNER, wayland-scanner)//' configure.ac @@ -52,4 +57,14 @@ do_install_append() { rm -fr ${D}/usr/lib/weston/gl-renderer.so rm -fr ${D}/usr/share/weston/wayland.svg rm -fr ${D}/usr/lib/pkgconfig/weston.pc -} \ No newline at end of file +} + +pkg_postinst_${PN} () { + for user in app guest; do + for appdir in desktop manifest dbspace; do + mkdir -p $D/home/$user/.applications/$appdir + done + find $D/home/$user/ -type d -exec chsmack -a User {} \; + chown -R $user:users $D/home/$user/ + done +} -- 2.7.4