Skip to content

Commit 14ae012

Browse files
Use ArgumentList
1 parent eb6d040 commit 14ae012

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ private Result CreateOpenWithEditorResult(SearchResult record)
322322
{
323323
try
324324
{
325-
Process.Start(editorPath, '"' + record.FullPath + '"');
325+
Process.Start(new ProcessStartInfo()
326+
{
327+
FileName = editorPath,
328+
ArgumentList = { record.FullPath }
329+
});
326330
return true;
327331
}
328332
catch (Exception e)

0 commit comments

Comments
 (0)