core-admin/dom0/aux-tools/remove_appvm_appmenus.sh
2011-04-05 11:58:21 +02:00

15 lines
285 B
Bash
Executable File

#!/bin/sh
VMNAME=$1
VMDIR=/var/lib/qubes/appvms/$VMNAME
APPSDIR=$VMDIR/apps
if [ $# != 1 ]; then
echo "usage: $0 <vmname>"
exit
fi
if ls $APPSDIR/*.directory $APPSDIR/*.desktop > /dev/null 2>&1; then
xdg-desktop-menu uninstall $APPSDIR/*.directory $APPSDIR/*.desktop
fi