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

@@ -506,6 +506,21 @@ namespace Wox
#endregion
public bool ShellRun(string cmd)
{
try
{
if (string.IsNullOrEmpty(cmd))
throw new ArgumentNullException();
Wox.Infrastructure.WindowsShellRun.Start(cmd);
return true;
}
catch (Exception ex)
{
ShowMsg("Could not start " + cmd, ex.Message, null);
}
return false;
}
}
}