Allow desktop background to be chosen from recipe 85/22285/1
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 30 May 2014 18:13:46 +0000 (20:13 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 30 May 2014 18:13:46 +0000 (20:13 +0200)
Change-Id: I94eb8cf1ed733934b31be430f2acf063553a9e78
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/weston-common/weston-common-extraconf.inc

index e1360a1..79f4b8c 100644 (file)
@@ -18,6 +18,13 @@ USERADD_PARAM_${PN} += " -d /home/bob   -m -u 5002   -g users   -G display -r -s
 USERADD_PARAM_${PN} += " -d /home/carole -m -u 5003   -g users   -G display -r -s /bin/sh carole; "
 USERADD_PARAM_${PN} += " -d /home/guest -m -u 9999   -g users   -G display -r -s /bin/sh guest "
 
+do_compile_append() {
+
+    # Comment on of those two lines to define the desktop background:
+    sed -i 's@background-image=/usr/share/backgrounds/tizen/golfe-morbihan.jpg@background-image=/usr/share/backgrounds/tizen/tizen_common.png@g' ${S}/weston.ini
+    # sed -i 's@background-image=/usr/share/backgrounds/tizen/tizen_common.png@background-image=/usr/share/backgrounds/tizen/golfe-morbihan.jpg@g' ${S}/weston.ini
+}
+
 do_install_append() {
     install -m 755 uid.sh ${D}/etc/profile.d
 
@@ -26,13 +33,13 @@ do_install_append() {
 }
 
 pkg_postinst_${PN} () {
-for user in alice bob carol 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
+    for user in alice bob carol 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
 }
 
 weston-common_files += "/lib/systemd/user/default.target.wants/weston-user.service"
\ No newline at end of file