qt5: add launcher icons if files present 94/20994/2
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 14 May 2014 10:54:21 +0000 (12:54 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 14 May 2014 11:03:47 +0000 (13:03 +0200)
Change-Id: If1f9a2ea00ee13fe47ac3d7da8f4744310467206
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
scripts/common-qt5.post

index 5122c67..8d17d24 100644 (file)
@@ -1,2 +1,19 @@
+#!/bin/sh
 ############### common-qt5.post ################
 
+list='
+qt5-qtdeclarative-examples
+qt5-cinematic-experience
+'
+
+dst="/usr/share/applications/tizen/launcher.conf"
+
+if [ -w "$dst" ] ; then
+    for app in $list ; do
+        src="/usr/share/applications/$app.desktop"
+
+        grep "$src" "$dst" \
+            || { [ ! -r "$src" ] || echo "$src" >> "$dst" ; }
+
+    done
+fi