From: Philippe Coval Date: Thu, 15 May 2014 10:07:39 +0000 (+0200) Subject: wayland: Add installed apps to launcher X-Git-Tag: submit/tizen_common/20140522.151020~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F21142%2F1;p=profile%2Fcommon%2Fmeta.git wayland: Add installed apps to launcher 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 --- diff --git a/scripts/common-wayland.post b/scripts/common-wayland.post index 23f9cda..c855032 100644 --- a/scripts/common-wayland.post +++ b/scripts/common-wayland.post @@ -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 + +#}