Skip to content

Commit 7277373

Browse files
committed
use shell when opening directories
1 parent a1353d5 commit 7277373

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ public static bool FileExits(this string filePath)
112112

113113
public static void OpenLocationInExporer(string location)
114114
{
115+
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = location };
115116
try
116117
{
117118
if (LocationExists(location))
118-
Process.Start(FileExplorerProgramName, location);
119+
Process.Start(psi);
119120
}
120121
catch (Exception e)
121122
{

0 commit comments

Comments
 (0)