mesen: don't use absolute path for Exec in generated .desktop files (#431989)

authored by Toma and committed by GitHub e2484e06 8215ace5

+15
+13
pkgs/by-name/me/mesen/desktop-make-non-absolute-exec.patch
··· 1 + diff --git a/UI/Config/FileAssociationHelper.cs b/UI/Config/FileAssociationHelper.cs 2 + index bcd40ce..4965c7a 100644 3 + --- a/UI/Config/FileAssociationHelper.cs 4 + +++ b/UI/Config/FileAssociationHelper.cs 5 + @@ -152,7 +152,7 @@ namespace Mesen.Config 6 + "Comment=Emulator" + Environment.NewLine + 7 + "Keywords=game;emulator;emu" + Environment.NewLine + 8 + "Categories=GNOME;GTK;Game;Emulator;" + Environment.NewLine + 9 + - "Exec=" + mainModule.FileName + " %f" + Environment.NewLine + 10 + + "Exec=" + "Mesen" + " %f" + Environment.NewLine + 11 + "NoDisplay=false" + Environment.NewLine + 12 + "StartupNotify=true" + Environment.NewLine + 13 + "Icon=MesenIcon" + Environment.NewLine;
+2
pkgs/by-name/me/mesen/package.nix
··· 26 26 ./dont-use-nightly-avalonia.patch 27 27 # upstream has a weird library loading mechanism, which we override with a more sane alternative 28 28 ./dont-zip-libraries.patch 29 + # without this the generated .desktop file uses an absolute (and incorrect) path for the binary 30 + ./desktop-make-non-absolute-exec.patch 29 31 ]; 30 32 31 33 dotnet-sdk = dotnetCorePackages.sdk_8_0;