Skip to content

Commit 702ce85

Browse files
Lamparter0x5bfa
andcommitted
Add quotes to PowerShell location launch arguments
Co-authored-by: 0x5bfa <[email protected]>
1 parent 42cec2f commit 702ce85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Actions/Content/Run/RunWithPowershellAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public RunWithPowershellAction()
3131

3232
public Task ExecuteAsync(object? parameter = null)
3333
{
34-
return Win32Helper.RunPowershellCommandAsync($"{context.ShellPage?.SlimContentPage?.SelectedItem?.ItemPath}", PowerShellExecutionOptions.None);
34+
return Win32Helper.RunPowershellCommandAsync($@"""{context.ShellPage?.SlimContentPage?.SelectedItem?.ItemPath}""", PowerShellExecutionOptions.None);
3535
}
3636

3737
private void Context_PropertyChanged(object? sender, PropertyChangedEventArgs e)

0 commit comments

Comments
 (0)