mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: should not set DISPLAY
env on Linux platform
This commit is contained in:
parent
ca461d1926
commit
4e13703b9d
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ namespace SourceGit.Commands
|
|||
|
||||
// Force using this app as SSH askpass program
|
||||
var selfExecFile = Process.GetCurrentProcess().MainModule.FileName;
|
||||
start.Environment.Add("DISPLAY", "required");
|
||||
if (!OperatingSystem.IsLinux())
|
||||
start.Environment.Add("DISPLAY", "required");
|
||||
start.Environment.Add("SSH_ASKPASS", selfExecFile); // Can not use parameter here, because it invoked by SSH with `exec`
|
||||
start.Environment.Add("SSH_ASKPASS_REQUIRE", "prefer");
|
||||
|
||||
|
|
Loading…
Reference in a new issue