@@ -954,7 +954,7 @@ public async Task CheckPathInput(string currentInput, string currentSelectedPath
954
954
}
955
955
}
956
956
957
- LaunchApplicationFromPath ( currentInput , workingDir ) ;
957
+ await LaunchApplicationFromPath ( currentInput , workingDir ) ;
958
958
959
959
try
960
960
{
@@ -977,7 +977,7 @@ await DialogDisplayHelper.ShowDialogAsync("InvalidItemDialogTitle".GetLocalized(
977
977
}
978
978
}
979
979
980
- private static void LaunchApplicationFromPath ( string currentInput , string workingDir )
980
+ private static async Task LaunchApplicationFromPath ( string currentInput , string workingDir )
981
981
{
982
982
var trimmedInput = currentInput . Trim ( ) ;
983
983
var fileName = trimmedInput ;
@@ -989,16 +989,18 @@ private static void LaunchApplicationFromPath(string currentInput, string workin
989
989
arguments = currentInput . Substring ( currentInput . IndexOf ( ' ' ) ) ;
990
990
}
991
991
992
- var psi = new ProcessStartInfo
992
+ var connection = await AppServiceConnectionHelper . Instance ;
993
+ if ( connection != null )
993
994
{
994
- FileName = fileName ,
995
- Arguments = arguments ,
996
- CreateNoWindow = false ,
997
- UseShellExecute = true ,
998
- WindowStyle = ProcessWindowStyle . Normal ,
999
- WorkingDirectory = workingDir
1000
- } ;
1001
- Process . Start ( psi ) ;
995
+ var value = new ValueSet ( )
996
+ {
997
+ { "Arguments" , "LaunchApp" } ,
998
+ { "WorkingDirectory" , workingDir } ,
999
+ { "Application" , fileName } ,
1000
+ { "Parameters" , arguments }
1001
+ } ;
1002
+ await connection . SendMessageAsync ( value ) ;
1003
+ }
1002
1004
}
1003
1005
1004
1006
public async void SetAddressBarSuggestions ( AutoSuggestBox sender , IShellPage shellpage , int maxSuggestions = 7 )
0 commit comments