Use correct path for shortcut deletions

This commit is contained in:
Martin Wimpress 2021-09-29 04:10:20 +01:00
parent eac94b6a6f
commit 36f6c782ec
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function disk_delete() {
fi
local VMNAME=""
VMNAME=$(basename "${VM}" .conf)
local SHORTCUT_DIR="/home/${USER}/.local/share/applications/"
local SHORTCUT_DIR="${HOME}/.local/share/applications/"
if [ -e "${SHORTCUT_DIR}/${VMNAME}.desktop" ]; then
rm -v "${SHORTCUT_DIR}/${VMNAME}.desktop"
echo "Deleted ${VM} desktop shortcut"