This commit is contained in:
qianlifeng
2014-03-22 11:21:29 +08:00
15 changed files with 50 additions and 66 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);