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.
@@ -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"