Use ShellRun to provide unified experience

This commit is contained in:
Yeechan Lu
2014-03-21 03:53:18 +08:00
parent 25cedff47a
commit 5c6b741dc4
10 changed files with 33 additions and 52 deletions

View File

@@ -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)