Correct path for shortcut creation

This commit is contained in:
Martin Wimpress 2021-09-29 03:31:46 +01:00
parent 2f992c5941
commit 2fa3a1319d
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -607,7 +607,7 @@ function shortcut_create {
VMNAME=$(basename "${VM}" .conf) VMNAME=$(basename "${VM}" .conf)
local LAUNCHER_DIR="" local LAUNCHER_DIR=""
LAUNCHER_DIR="$(dirname "$(realpath "$0")")" LAUNCHER_DIR="$(dirname "$(realpath "$0")")"
local filename="/home/${USER}/.local/share/applications/${VMNAME}.desktop" local filename="${HOME}/.local/share/applications/${VMNAME}.desktop"
cat << EOF > "${filename}" cat << EOF > "${filename}"
[Desktop Entry] [Desktop Entry]
Version=1.0 Version=1.0