Unverified Commit e2484e06 authored by Toma's avatar Toma Committed by GitHub
Browse files

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

parents 8215ace5 b580ef27
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
diff --git a/UI/Config/FileAssociationHelper.cs b/UI/Config/FileAssociationHelper.cs
index bcd40ce..4965c7a 100644
--- a/UI/Config/FileAssociationHelper.cs
+++ b/UI/Config/FileAssociationHelper.cs
@@ -152,7 +152,7 @@ namespace Mesen.Config
 				"Comment=Emulator" + Environment.NewLine +
 				"Keywords=game;emulator;emu" + Environment.NewLine +
 				"Categories=GNOME;GTK;Game;Emulator;" + Environment.NewLine +
-				"Exec=" + mainModule.FileName + " %f" + Environment.NewLine +
+				"Exec=" + "Mesen" + " %f" + Environment.NewLine +
 				"NoDisplay=false" + Environment.NewLine +
 				"StartupNotify=true" + Environment.NewLine +
 				"Icon=MesenIcon" + Environment.NewLine;
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ buildDotnetModule rec {
    ./dont-use-nightly-avalonia.patch
    # upstream has a weird library loading mechanism, which we override with a more sane alternative
    ./dont-zip-libraries.patch
    # without this the generated .desktop file uses an absolute (and incorrect) path for the binary
    ./desktop-make-non-absolute-exec.patch
  ];

  dotnet-sdk = dotnetCorePackages.sdk_8_0;