mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Use ShellRun to provide unified experience
This commit is contained in:
@@ -137,15 +137,8 @@ namespace Wox.Plugin.System
|
||||
|
||||
private void ExecuteCmd(string cmd)
|
||||
{
|
||||
try
|
||||
{
|
||||
WindowsShellRun.Start(cmd);
|
||||
if (context.ShellRun(cmd))
|
||||
AddCmdHistory(cmd);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.Show("Wox cound't execute this command. \n\n" + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void InitInternal(PluginInitContext context)
|
||||
|
||||
Reference in New Issue
Block a user