Skip to content

Commit 405e3f0

Browse files
committed
Change shellcommand
1 parent 68f59dd commit 405e3f0

File tree

1 file changed

+9
-9
lines changed
  • Plugins/Flow.Launcher.Plugin.Sys

1 file changed

+9
-9
lines changed

Plugins/Flow.Launcher.Plugin.Sys/Main.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private List<Result> Commands()
215215
Action = c =>
216216
{
217217
{
218-
System.Diagnostics.Process.Start("explorer.exe", "shell:mycomputerfolder");
218+
context.API.OpenDirectory("shell:mycomputerfolder");
219219
}
220220

221221
return true;
@@ -230,7 +230,7 @@ private List<Result> Commands()
230230
Action = c =>
231231
{
232232
{
233-
System.Diagnostics.Process.Start("explorer.exe", "shell:desktop");
233+
context.API.OpenDirectory("shell:desktop");
234234
}
235235

236236
return true;
@@ -245,7 +245,7 @@ private List<Result> Commands()
245245
Action = c =>
246246
{
247247
{
248-
System.Diagnostics.Process.Start("explorer.exe", "shell:Libraries");
248+
context.API.OpenDirectory("shell:Libraries");
249249
}
250250

251251
return true;
@@ -260,7 +260,7 @@ private List<Result> Commands()
260260
Action = c =>
261261
{
262262
{
263-
System.Diagnostics.Process.Start("explorer.exe", "shell:My Pictures");
263+
context.API.OpenDirectory("shell:My Pictures");
264264
}
265265

266266
return true;
@@ -275,7 +275,7 @@ private List<Result> Commands()
275275
Action = c =>
276276
{
277277
{
278-
System.Diagnostics.Process.Start("explorer.exe", "shell:My Video");
278+
context.API.OpenDirectory("shell:My Video");
279279
}
280280

281281
return true;
@@ -290,7 +290,7 @@ private List<Result> Commands()
290290
Action = c =>
291291
{
292292
{
293-
System.Diagnostics.Process.Start("explorer.exe", "shell:Personal");
293+
context.API.OpenDirectory("shell:Personal");
294294
}
295295

296296
return true;
@@ -305,7 +305,7 @@ private List<Result> Commands()
305305
Action = c =>
306306
{
307307
{
308-
System.Diagnostics.Process.Start("explorer.exe", "shell:My Music");
308+
context.API.OpenDirectory("shell:My Music");
309309
}
310310

311311
return true;
@@ -335,7 +335,7 @@ private List<Result> Commands()
335335
Action = c =>
336336
{
337337
{
338-
System.Diagnostics.Process.Start("explorer.exe", "shell:downloads");
338+
context.API.OpenDirectory("shell:downloads");
339339
}
340340

341341
return true;
@@ -373,7 +373,7 @@ private List<Result> Commands()
373373
Action = c =>
374374
{
375375
{
376-
System.Diagnostics.Process.Start("explorer.exe", "shell:RecycleBinFolder");
376+
context.API.OpenDirectory("shell:RecycleBinFolder");
377377
}
378378

379379
return true;

0 commit comments

Comments
 (0)