wayland: Add installed apps to launcher 42/21142/1
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 15 May 2014 10:07:39 +0000 (12:07 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Thu, 15 May 2014 10:11:51 +0000 (12:11 +0200)
Note: the could be also done at runtime
but it's better to be on live images too.

Change-Id: I08eda268e9c48d5571aa4ff092c4392810b0ac80
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
scripts/common-wayland.post

index 23f9cda..c855032 100644 (file)
@@ -36,3 +36,17 @@ EOF
 # clean weston target inside user session (installed by weston)
 rm -f /usr/lib/systemd/user/weston.target
 
+
+#{ Add installed apps for tizen to launcher if not present
+dst="/usr/share/applications/tizen/launcher.conf"
+
+if [ -w "$dst" ] ; then
+   ls /usr/share/applications/tizen/*.desktop \
+   | while read src; do
+        grep "$src" "$dst" \
+            || { [ ! -r "$src" ] || echo "$src" >> "$dst" ; }
+
+    done
+fi
+
+#}