Add quotes surrounding auto startup entry (#2150)

* Add quotes surrounding auto startup entry

* Add quotes surrounding auto startup entry
This commit is contained in:
VictoriousRaptor 2023-06-17 21:33:00 +08:00 committed by GitHub
parent 0d7dbe2bc8
commit e1c63af061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ namespace Flow.Launcher.Helper
try
{
using var key = Registry.CurrentUser.OpenSubKey(StartupPath, true);
key?.SetValue(Constant.FlowLauncher, Constant.ExecutablePath);
key?.SetValue(Constant.FlowLauncher, $"\"{Constant.ExecutablePath}\"");
}
catch (Exception e)
{