Skip to content

Commit f700e9b

Browse files
committed
Add "" in FilesFolders.OpenPath to be able to open path with whitespace
1 parent d509b11 commit f700e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public static bool FileExists(this string filePath)
121121

122122
public static void OpenPath(string fileOrFolderPath)
123123
{
124-
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = fileOrFolderPath };
124+
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = '"' + fileOrFolderPath + '"' };
125125
try
126126
{
127127
if (LocationExists(fileOrFolderPath) || FileExists(fileOrFolderPath))

0 commit comments

Comments
 (0)