2013-03-16 17:23:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
VMNAME=$1
|
|
|
|
VMTYPE=$2
|
|
|
|
if [ -z "$VMTYPE" ]; then
|
|
|
|
VMTYPE=appvms
|
|
|
|
fi
|
|
|
|
VMDIR=/var/lib/qubes/$VMTYPE/$VMNAME
|
|
|
|
APPSDIR=$VMDIR/apps
|
|
|
|
|
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
echo "usage: $0 <vmname> [appvms|vm-templates|servicevms]"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ls $APPSDIR/*.directory $APPSDIR/*.desktop > /dev/null 2>&1; then
|
2013-11-16 10:46:53 +00:00
|
|
|
LC_COLLATE=C xdg-desktop-menu uninstall $APPSDIR/*.directory $APPSDIR/*.desktop
|
2013-03-16 17:23:22 +00:00
|
|
|
rm -f $APPSDIR/*.desktop $APPSDIR/*.directory
|
|
|
|
rm -f $HOME/.config/menus/applications-merged/user-$VMNAME-vm.menu
|
|
|
|
fi
|
|
|
|
|
2015-02-22 01:08:49 +00:00
|
|
|
if [ -n "$KDE_SESSION_UID" -a -z "$SKIP_CACHE_REBUILD" ]; then
|
2016-05-03 23:44:09 +00:00
|
|
|
kbuildsycoca$KDE_SESSION_VERSION
|
2013-03-16 17:23:22 +00:00
|
|
|
fi
|