7
7
using System . Windows . Controls ;
8
8
using Flow . Launcher . Infrastructure ;
9
9
using Flow . Launcher . Infrastructure . Storage ;
10
+ using Flow . Launcher . Plugin . SharedCommands ;
10
11
11
12
namespace Flow . Launcher . Plugin . Folder
12
13
{
@@ -18,8 +19,7 @@ public class Main : IPlugin, ISettingProvider, IPluginI18n, ISavable, IContextMe
18
19
public const string CopyImagePath = "Images\\ copy.png" ;
19
20
20
21
private string DefaultFolderSubtitleString = "Ctrl + Enter to open the directory" ;
21
-
22
- private const string _fileExplorerProgramName = "explorer" ;
22
+
23
23
private static List < string > _driverNames ;
24
24
private PluginInitContext _context ;
25
25
@@ -103,7 +103,7 @@ private Result CreateFolderResult(string title, string subtitle, string path, Qu
103
103
{
104
104
try
105
105
{
106
- Process . Start ( _fileExplorerProgramName , path ) ;
106
+ FilesFolders . OpenLocationInExporer ( path ) ;
107
107
return true ;
108
108
}
109
109
catch ( Exception ex )
@@ -255,7 +255,7 @@ private static Result CreateFileResult(string filePath, Query query)
255
255
{
256
256
try
257
257
{
258
- Process . Start ( _fileExplorerProgramName , filePath ) ;
258
+ FilesFolders . OpenLocationInExporer ( filePath ) ;
259
259
}
260
260
catch ( Exception ex )
261
261
{
@@ -286,7 +286,7 @@ private static Result CreateOpenCurrentFolderResult(string incompleteName, strin
286
286
Score = 500 ,
287
287
Action = c =>
288
288
{
289
- Process . Start ( _fileExplorerProgramName , search ) ;
289
+ FilesFolders . OpenLocationInExporer ( search ) ;
290
290
return true ;
291
291
}
292
292
} ;
0 commit comments