Add "" in FilesFolders.OpenPath to be able to open path with whitespace

This commit is contained in:
弘韬 张 2021-02-01 17:02:57 +08:00
parent d509b11491
commit f700e9bbe8

View file

@ -121,7 +121,7 @@ namespace Flow.Launcher.Plugin.SharedCommands
public static void OpenPath(string fileOrFolderPath)
{
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = fileOrFolderPath };
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = '"' + fileOrFolderPath + '"' };
try
{
if (LocationExists(fileOrFolderPath) || FileExists(fileOrFolderPath))