From 9e874b241a8a9b34a46a2315035a037f71a911f1 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Tue, 1 Jul 2014 09:56:10 +0800 Subject: [PATCH] Revert 3bbe54bb719cf40b477161fd6486916c1da1828e --- Wox.Infrastructure/WindowsShellRun.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Wox.Infrastructure/WindowsShellRun.cs b/Wox.Infrastructure/WindowsShellRun.cs index 1318dab303..73627d1a24 100644 --- a/Wox.Infrastructure/WindowsShellRun.cs +++ b/Wox.Infrastructure/WindowsShellRun.cs @@ -297,9 +297,6 @@ namespace Wox.Infrastructure int driveId = -1; if (PromptForMedia(cmd, out driveId)) { - string oldCwd = Environment.CurrentDirectory; - string home = Environment.GetEnvironmentVariable("HOME"); - Environment.CurrentDirectory = home; ShellExecCmdLine( IntPtr.Zero, errorDialogHwnd, @@ -308,7 +305,6 @@ namespace Wox.Infrastructure global::System.Diagnostics.ProcessWindowStyle.Normal, ShellExecCmdLineFlags.SECL__IGNORE_ERROR | ShellExecCmdLineFlags.SECL_USE_IDLIST | ShellExecCmdLineFlags.SECL_LOG_USAGE | (showErrorDialog ? 0 : ShellExecCmdLineFlags.SECL_NO_UI) ); - Environment.CurrentDirectory = oldCwd; } else { // Device not ready 0x80070015