From f0990bc652efd31f6db68a33bf9196e75d80939d Mon Sep 17 00:00:00 2001 From: Miepee Date: Fri, 2 Sep 2022 20:42:01 +0200 Subject: [PATCH] Fix incorrect windows shortcut --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs index 29efb7f..e2c6fce 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Events.cs @@ -837,7 +837,7 @@ public partial class MainForm : Form // When providing an exe, Windows uses its icon. // And for the URL, we just use the file:// protocol shortcutText = shortcutText.Replace("ICONPATH", $"{Core.ProfilesPath}/{profile.Name}/AM2R.exe"); - shortcutText = shortcutText.Replace("EXECUTABLE", new Uri($"{Core.ProfilesPath}/{profile.Name}", UriKind.Absolute).AbsoluteUri); + shortcutText = shortcutText.Replace("EXECUTABLE", new Uri($"{Core.ProfilesPath}/{profile.Name}/AM2R.exe", UriKind.Absolute).AbsoluteUri); } else if (OS.IsLinux) {