From 14ae0129495641c2f06025cb9206b9ad23076af5 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Wed, 14 Dec 2022 01:18:57 +0800 Subject: [PATCH] Use ArgumentList --- Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index 0c9b78ca8..4733e09e9 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -322,7 +322,11 @@ namespace Flow.Launcher.Plugin.Explorer { try { - Process.Start(editorPath, '"' + record.FullPath + '"'); + Process.Start(new ProcessStartInfo() + { + FileName = editorPath, + ArgumentList = { record.FullPath } + }); return true; } catch (Exception e)