StartApp: remove workaround for .desktop suffix

The workaround is no longer necessary, and it breaks when
the app name itself contains .desktop (such as org.telegram.desktop).

Fixes QubesOS/qubes-issues#5408.
This commit is contained in:
Pawel Marczewski 2020-01-07 12:43:27 +01:00
parent b20373213d
commit 03621e5792
No known key found for this signature in database
GPG Key ID: DE42EE9B14F96465

View File

@ -5,8 +5,7 @@ if [ -z "$1" ]; then
exit 1
fi
# make sure it has .desktop suffix, and only one of it
app_basename="${1%.desktop}.desktop"
app_basename="$1.desktop"
# Based on XDG Base Directory Specification, Version 0.7
[ -n "$XDG_DATA_HOME" ] || XDG_DATA_HOME="$HOME/.local/share"