From dee7c69156368c51b5da8070f7df5339ff6b57e0 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 24 May 2011 00:09:44 +0200 Subject: [PATCH] Create appmenus only for whitelisted apps (if set) (#45) --- dom0/aux-tools/create_apps_for_appvm.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom0/aux-tools/create_apps_for_appvm.sh b/dom0/aux-tools/create_apps_for_appvm.sh index a57525df..8b01596d 100755 --- a/dom0/aux-tools/create_apps_for_appvm.sh +++ b/dom0/aux-tools/create_apps_for_appvm.sh @@ -37,7 +37,11 @@ mkdir -p $APPSDIR if [ "$SRCDIR" != "none" ]; then echo "--> Converting Appmenu Templates..." - find $SRCDIR -name "*.desktop" -exec /usr/lib/qubes/convert_apptemplate2vm.sh {} $APPSDIR $VMNAME $VMDIR \; + if [ -r "$VMDIR/whitelisted-appmenus.list" ]; then + cat $VMDIR/whitelisted-appmenus.list | xargs -I{} /usr/lib/qubes/convert_apptemplate2vm.sh $SRCDIR/{} $APPSDIR $VMNAME $VMDIR + else + find $SRCDIR -name "*.desktop" $CHECK_WHITELISTED -exec /usr/lib/qubes/convert_apptemplate2vm.sh {} $APPSDIR $VMNAME $VMDIR \; + fi /usr/lib/qubes/convert_dirtemplate2vm.sh $SRCDIR/qubes-*.directory.template $APPSDIR/$VMNAME-vm.directory $VMNAME $VMDIR fi