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)
73
73
switch ( activatedEventArgs )
74
74
{
75
75
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 ) ) )
77
79
{
78
80
// WINUI3: When launching from commandline the argument is not ICommandLineActivatedEventArgs (#10370)
79
81
var ppm = CommandLineParser . ParseUntrustedCommands ( launchArgs . Arguments ) ;
You can’t perform that action at this time.
0 commit comments