2010-04-05 20:58:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
VMNAME=$1
|
2011-04-19 17:55:06 +02:00
|
|
|
VMTYPE=$2
|
|
|
|
if [ -z "$VMTYPE" ]; then
|
|
|
|
VMTYPE=appvms
|
|
|
|
fi
|
|
|
|
VMDIR=/var/lib/qubes/$VMTYPE/$VMNAME
|
2010-04-05 20:58:57 +02:00
|
|
|
APPSDIR=$VMDIR/apps
|
|
|
|
|
2011-04-19 18:06:01 +02:00
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
echo "usage: $0 <vmname> [appvms|vm-templates|servicevms]"
|
2010-04-05 20:58:57 +02:00
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2011-04-05 11:58:21 +02:00
|
|
|
if ls $APPSDIR/*.directory $APPSDIR/*.desktop > /dev/null 2>&1; then
|
|
|
|
xdg-desktop-menu uninstall $APPSDIR/*.directory $APPSDIR/*.desktop
|
2011-05-24 00:10:17 +02:00
|
|
|
rm -f $APPSDIR/*.desktop $APPSDIR/*.directory
|
2011-04-05 11:58:21 +02:00
|
|
|
fi
|
2010-04-05 20:58:57 +02:00
|
|
|
|