File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Plugins/Flow.Launcher.Plugin.Program Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -140,10 +140,19 @@ public List<Result> ContextMenus(IPublicAPI api)
140
140
Title = api . GetTranslation ( "flowlauncher_plugin_program_open_containing_folder" ) ,
141
141
Action = _ =>
142
142
{
143
+ var args = ! string . IsNullOrWhiteSpace ( Main . _settings . CustomizedArgs )
144
+ ? Main . _settings . CustomizedArgs
145
+ . Replace ( "%s" , $ "\" { ParentDirectory } \" ")
146
+ . Replace ( "%f" , $ "\" { FullPath } \" ") :
147
+ Main . _settings . CustomizedExplorer == Settings . Explorer
148
+ ? $ "/select,\" { FullPath } \" "
149
+ : Settings . ExplorerArgs ;
150
+
143
151
Main . StartProcess ( Process . Start , new ProcessStartInfo (
144
- ! string . IsNullOrWhiteSpace ( Main . _settings . CustomizedExplorer ) ? Main . _settings . CustomizedExplorer : Settings . Explorer ,
145
- ! string . IsNullOrWhiteSpace ( Main . _settings . CustomizedArgs ) ? Main . _settings . CustomizedArgs . Replace ( "%s" , $ "\" { ParentDirectory } \" ") . Replace ( "%f" , $ "\" { FullPath } \" ") :
146
- Settings . ExplorerArgs ) ) ;
152
+ ! string . IsNullOrWhiteSpace ( Main . _settings . CustomizedExplorer )
153
+ ? Main . _settings . CustomizedExplorer
154
+ : Settings . Explorer ,
155
+ args ) ) ;
147
156
return true ;
148
157
} ,
149
158
IcoPath = "Images/folder.png"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class Settings
21
21
22
22
internal const string Explorer = "explorer" ;
23
23
24
- internal const string ExplorerArgs = "/select,%f " ;
24
+ internal const string ExplorerArgs = "%s " ;
25
25
26
26
/// <summary>
27
27
/// Contains user added folder location contents as well as all user disabled applications
You can’t perform that action at this time.
0 commit comments