Browse Source

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.
Pawel Marczewski 4 years ago
parent
commit
03621e5792
1 changed files with 1 additions and 2 deletions
  1. 1 2
      qubes-rpc/qubes.StartApp

+ 1 - 2
qubes-rpc/qubes.StartApp

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