Skip to content

Commit

Permalink
Merge pull request #325 from distantcam/issue321
Browse files Browse the repository at this point in the history
Starting process with proper working dir
  • Loading branch information
anaisbetts committed May 5, 2015
2 parents 92e7af6 + ce22b74 commit 1438452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Update/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public void ProcessStart(string exeName, string arguments, bool shouldWait)

try {
this.Log().Info("About to launch: '{0}': {1}", targetExe.FullName, arguments ?? "");
Process.Start(new ProcessStartInfo(targetExe.FullName, arguments ?? ""));
Process.Start(new ProcessStartInfo(targetExe.FullName, arguments ?? "") { WorkingDirectory = Path.GetDirectoryName(targetExe.FullName) });
} catch (Exception ex) {
this.Log().ErrorException("Failed to start process", ex);
}
Expand Down

0 comments on commit 1438452

Please sign in to comment.