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.
This commit is contained in:
Linghao Zhang
2025-02-22 09:09:19 +01:00
parent 73cf49b8ad
commit daec02141c
+1 -1
View File
@@ -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 = {