File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ public async Task InitializeApplication(object activatedEventArgs)
7373 switch ( activatedEventArgs )
7474 {
7575 case ILaunchActivatedEventArgs launchArgs :
76- if ( launchArgs . Arguments is not null && launchArgs . Arguments . Contains ( $ "files.exe", StringComparison . OrdinalIgnoreCase ) )
76+ if ( launchArgs . Arguments is not null &&
77+ ( CommandLineParser . SplitArguments ( launchArgs . Arguments , true ) [ 0 ] . EndsWith ( $ "files.exe", StringComparison . OrdinalIgnoreCase )
78+ || CommandLineParser . SplitArguments ( launchArgs . Arguments , true ) [ 0 ] . EndsWith ( $ "files", StringComparison . OrdinalIgnoreCase ) ) )
7779 {
7880 // WINUI3: When launching from commandline the argument is not ICommandLineActivatedEventArgs (#10370)
7981 var ppm = CommandLineParser . ParseUntrustedCommands ( launchArgs . Arguments ) ;
You can’t perform that action at this time.
0 commit comments