From 9de105b1cb89df39ba969b3b7150cb9445d5386d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=98=E9=9F=AC=20=E5=BC=A0?= Date: Wed, 4 Nov 2020 21:56:45 +0800 Subject: [PATCH] Add customized args --- Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs | 4 ++-- Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs index e59781bd2..a0e496a0d 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs @@ -325,8 +325,8 @@ namespace Flow.Launcher.Plugin.Program.Programs Action = _ => { Main.StartProcess(Process.Start, new ProcessStartInfo( - !string.IsNullOrEmpty(Main._settings.CustomizedExploere)?Main._settings.CustomizedExploere:"exploere" - , (Main._settings.CustomizedArgs + " " + ParentDirectory).Trim())); + !string.IsNullOrEmpty(Main._settings.CustomizedExploere) ? Main._settings.CustomizedExploere:"exploere", + $"{Main._settings.CustomizedArgs} \"{Package.Location}\"".Trim())); return true; }, diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index c629c218a..7d3141c81 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -141,8 +141,8 @@ namespace Flow.Launcher.Plugin.Program.Programs Action = _ => { Main.StartProcess(Process.Start, new ProcessStartInfo( - !string.IsNullOrEmpty(Main._settings.CustomizedExploere)?Main._settings.CustomizedExploere:"exploere" - , (Main._settings.CustomizedArgs + " " + ParentDirectory).Trim())); + !string.IsNullOrEmpty(Main._settings.CustomizedExploere) ? Main._settings.CustomizedExploere:"exploere", + $"{Main._settings.CustomizedArgs} \"{ParentDirectory}\"".Trim())); return true; }, IcoPath = "Images/folder.png"