From b565c6c7326b46905e679b297dc666abd929dd6f Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Fri, 29 Mar 2024 14:55:06 +0100 Subject: [PATCH] Fix desktop files "desktop-file-validate" reports the following error: org.dhewm3.Dhewm3.desktop: error: value "dhewm3 "$@"" for key "Exec" in group "Desktop Entry" contains a non-escaped character '$' in a quote, but it should be escaped with two backslashes ("\\$") see https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables --- dist/linux/share/applications/org.dhewm3.Dhewm3.d3xp.desktop | 2 +- dist/linux/share/applications/org.dhewm3.Dhewm3.desktop | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/linux/share/applications/org.dhewm3.Dhewm3.d3xp.desktop b/dist/linux/share/applications/org.dhewm3.Dhewm3.d3xp.desktop index 189b234a..7b40830b 100644 --- a/dist/linux/share/applications/org.dhewm3.Dhewm3.d3xp.desktop +++ b/dist/linux/share/applications/org.dhewm3.Dhewm3.d3xp.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Comment=dhewm 3 is a Doom 3 GPL source port Categories=Game;Shooter; -Exec=dhewm3 +set fs_game d3xp "$@" +Exec=dhewm3 +set fs_game d3xp "\\$@" Icon=org.dhewm3.Dhewm3 Name=Dhewm3 XP StartupNotify=true diff --git a/dist/linux/share/applications/org.dhewm3.Dhewm3.desktop b/dist/linux/share/applications/org.dhewm3.Dhewm3.desktop index 9875399a..5deeee45 100644 --- a/dist/linux/share/applications/org.dhewm3.Dhewm3.desktop +++ b/dist/linux/share/applications/org.dhewm3.Dhewm3.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Comment=dhewm 3 is a Doom 3 GPL source port Categories=Game;Shooter; -Exec=dhewm3 "$@" +Exec=dhewm3 "\\$@" Icon=org.dhewm3.Dhewm3 Name=Dhewm3 StartupNotify=true