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:
parent
b20373213d
commit
03621e5792
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user