Add run as administrator to Shell plugin settings

This commit is contained in:
Jeremy Wu
2019-12-10 08:23:34 +11:00
parent 1fd31d83bf
commit 201c26f7c8
4 changed files with 19 additions and 26 deletions

View File

@@ -97,7 +97,7 @@ namespace Wox.Plugin.Program.Programs
Title = api.GetTranslation("wox_plugin_program_run_as_administrator"),
Action = _ =>
{
return Main.StartProcess(ShellCommand.SetCMDRunAsAdministrator(FullPath, ParentDirectory));
return Main.StartProcess(ShellCommand.SetProcessStartInfo(FullPath, ParentDirectory));
},
IcoPath = "Images/cmd.png"
},