From 9ea004efaa98368253221225c0e0551a36af3269 Mon Sep 17 00:00:00 2001 From: Macocian Alexandru Victor Date: Mon, 29 Apr 2024 20:56:02 +0300 Subject: [PATCH] Shortcut auto-place no longer removes arguments (Closes #695) (#701) --- Daybreak/Services/Shortcuts/ShortcutManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Daybreak/Services/Shortcuts/ShortcutManager.cs b/Daybreak/Services/Shortcuts/ShortcutManager.cs index f0b60140..ff721ebd 100644 --- a/Daybreak/Services/Shortcuts/ShortcutManager.cs +++ b/Daybreak/Services/Shortcuts/ShortcutManager.cs @@ -60,7 +60,7 @@ private bool ShortcutExists() { var shortcut = Shortcut.ReadFromFile(shortcutPath); var currentExecutable = Process.GetCurrentProcess()?.MainModule?.FileName; - if (shortcut.ExtraData?.EnvironmentVariableDataBlock?.TargetAnsi?.Equals(currentExecutable) is true) + if (shortcut.LinkTargetIDList?.Path?.Equals(currentExecutable) is true) { return true; }