#!/bin/sh APPSORIG=$1 APPSTMPL=$2 if [ $# != 2 ]; then echo "usage $0 " exit 0 fi rm -f $APPSTMPL/* mkdir -p $APPSTMPL find $APPSORIG -name "*.desktop" -exec appmenus/convert_app2template_for_templatevm.sh {} $APPSTMPL \; cp appmenus/qubes-vm.directory.template $APPSTMPL