From d4ee720eb3f4037580f2fdf80713730d0822a070 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Wed, 14 May 2014 12:54:21 +0200 Subject: [PATCH] qt5: add launcher icons if files present Change-Id: If1f9a2ea00ee13fe47ac3d7da8f4744310467206 Signed-off-by: Philippe Coval --- scripts/common-qt5.post | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scripts/common-qt5.post b/scripts/common-qt5.post index 5122c67..8d17d24 100644 --- a/scripts/common-qt5.post +++ b/scripts/common-qt5.post @@ -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 -- 2.7.4