Fix incorrect windows shortcut

pull/35/head
Miepee 4 years ago
parent a92c0c56e4
commit f0990bc652

@ -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)
{

Loading…
Cancel
Save