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

@@ -30,17 +30,7 @@ namespace Wox.Plugin.Everything
r.Action = (c) =>
{
context.HideApp();
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
info.UseShellExecute = true;
info.FileName = path;
try
{
System.Diagnostics.Process.Start(info);
}
catch (Exception ex)
{
context.ShowMsg("Could not start " + r.Title, ex.Message, null);
}
context.ShellRun(path);
return true;
};
results.Add(r);