From 9db82d5766be14d5a1ac8ad96940de3a2a1fca6f Mon Sep 17 00:00:00 2001 From: MaxED <j.maxed@gmail.com> Date: Tue, 30 Aug 2016 09:00:53 +0000 Subject: [PATCH] Fixed, updater: fixed "Unable to locate updater.ini" error when the editor was launched using "Open with..." shell command. --- Source/Core/General/General.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/General/General.cs b/Source/Core/General/General.cs index e3004cee6..470d0cef1 100644 --- a/Source/Core/General/General.cs +++ b/Source/Core/General/General.cs @@ -1028,7 +1028,9 @@ namespace CodeImp.DoomBuilder if(PendingUpdateRev != 0) { General.WriteLogLine("Initiating update to R" + PendingUpdateRev + "..."); - Process.Start(Path.Combine(apppath, "Updater.exe"), "-rev " + PendingUpdateRev); + + // Working directory must be set + Process.Start(new ProcessStartInfo { WorkingDirectory = apppath, FileName = "Updater.exe", Arguments = "-rev " + PendingUpdateRev } ); } // Application ends here and now -- GitLab