From 1477f45ab7fef9ac0a2bc38977a7a0772c369772 Mon Sep 17 00:00:00 2001 From: Julien Pierre Date: Thu, 5 Mar 2026 00:02:18 -0800 Subject: [PATCH] Allow autostart to work if the Windows username contains a space. --- RetroBar/PropertiesWindow.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RetroBar/PropertiesWindow.xaml.cs b/RetroBar/PropertiesWindow.xaml.cs index f99a03f0..d156b814 100644 --- a/RetroBar/PropertiesWindow.xaml.cs +++ b/RetroBar/PropertiesWindow.xaml.cs @@ -356,7 +356,8 @@ private void CbAutoStart_OnChecked(object sender, RoutedEventArgs e) } else { - rKey?.SetValue("RetroBar", ExePath.GetExecutablePath()); + // Registry Run values are command lines; quote the executable path to handle spaces in usernames/paths. + rKey?.SetValue("RetroBar", $"\"{ExePath.GetExecutablePath()}\""); } } catch (Exception exception)