From 4a700aa82c0770c2298bed713bfc4178c7b405ba Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Mon, 22 May 2023 21:44:05 +0800 Subject: [PATCH 1/2] Add quotes surrounding auto startup entry --- Flow.Launcher/Helper/AutoStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/Helper/AutoStartup.cs b/Flow.Launcher/Helper/AutoStartup.cs index 95632402032..92a4921d4c3 100644 --- a/Flow.Launcher/Helper/AutoStartup.cs +++ b/Flow.Launcher/Helper/AutoStartup.cs @@ -51,7 +51,7 @@ internal static void Enable() try { using var key = Registry.CurrentUser.OpenSubKey(StartupPath, true); - key?.SetValue(Constant.FlowLauncher, Constant.ExecutablePath); + key?.SetValue(Constant.FlowLauncher, "\"{Constant.ExecutablePath}\""); } catch (Exception e) { From cf49c5bff21b68191bf52b6a511776c4e81ee053 Mon Sep 17 00:00:00 2001 From: VictoriousRaptor <10308169+VictoriousRaptor@users.noreply.github.com> Date: Mon, 22 May 2023 21:47:49 +0800 Subject: [PATCH 2/2] Add quotes surrounding auto startup entry --- Flow.Launcher/Helper/AutoStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/Helper/AutoStartup.cs b/Flow.Launcher/Helper/AutoStartup.cs index 92a4921d4c3..1eae71c6a13 100644 --- a/Flow.Launcher/Helper/AutoStartup.cs +++ b/Flow.Launcher/Helper/AutoStartup.cs @@ -51,7 +51,7 @@ internal static void Enable() try { using var key = Registry.CurrentUser.OpenSubKey(StartupPath, true); - key?.SetValue(Constant.FlowLauncher, "\"{Constant.ExecutablePath}\""); + key?.SetValue(Constant.FlowLauncher, $"\"{Constant.ExecutablePath}\""); } catch (Exception e) {