From 03621e57927759f0e5a85b866e439d78a1b5ecb5 Mon Sep 17 00:00:00 2001 From: Pawel Marczewski Date: Tue, 7 Jan 2020 12:43:27 +0100 Subject: [PATCH] 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. --- qubes-rpc/qubes.StartApp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qubes-rpc/qubes.StartApp b/qubes-rpc/qubes.StartApp index 761b038..6c51857 100755 --- a/qubes-rpc/qubes.StartApp +++ b/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"