diff --git a/src/modules/launcher/PowerLauncher/App.xaml.cs b/src/modules/launcher/PowerLauncher/App.xaml.cs index 278f394513..a0c6b6c612 100644 --- a/src/modules/launcher/PowerLauncher/App.xaml.cs +++ b/src/modules/launcher/PowerLauncher/App.xaml.cs @@ -39,7 +39,10 @@ namespace PowerLauncher { if (SingleInstance.InitializeAsFirstInstance(Unique)) { - int.TryParse(args[0], out _powerToysPid); + if (args.Length > 0) + { + int.TryParse(args[0], out _powerToysPid); + } using (var application = new App()) {