From daec02141c5524ec516caa3e3a647598e27a373a Mon Sep 17 00:00:00 2001 From: Linghao Zhang Date: Sat, 22 Feb 2025 09:06:33 +0100 Subject: [PATCH] golden-cheetah-bin: correctly (unset) env variable in .desktop file The current desktop file does not work with gio launch or popular dmenu implementations. To correctly set QT_PLUGIN_PATH in the desktop file, we need to prefix the Exec entry with the env command. --- pkgs/by-name/go/golden-cheetah-bin/linux.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/go/golden-cheetah-bin/linux.nix b/pkgs/by-name/go/golden-cheetah-bin/linux.nix index 01c5a7e71af3..11a13e5f461b 100644 --- a/pkgs/by-name/go/golden-cheetah-bin/linux.nix +++ b/pkgs/by-name/go/golden-cheetah-bin/linux.nix @@ -30,7 +30,7 @@ appimageTools.wrapType2 rec { mkdir -p $out/share/pixmaps cp ${appimageContents}/GoldenCheetah.desktop $out/share/applications/ substituteInPlace $out/share/applications/GoldenCheetah.desktop --replace-fail \ - "Exec=GoldenCheetah" "Exec=QT_PLUGIN_PATH= GoldenCheetah" + "Exec=GoldenCheetah" "Exec=env QT_PLUGIN_PATH= GoldenCheetah" cp ${appimageContents}/gc.png $out/share/pixmaps/ ''; meta = {