Skip to content

Commit 85ec979

Browse files
committed
fix: linux credential storage
Signed-off-by: leo <longshuang@msn.cn>
1 parent a5cb5b6 commit 85ec979

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/Native/Linux.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public void Store(string host, string username, string password)
263263
RedirectStandardInput = true,
264264
RedirectStandardOutput = true,
265265
RedirectStandardError = true,
266-
UseShellExecute = true,
266+
UseShellExecute = false,
267267
CreateNoWindow = true
268268
};
269269

@@ -291,7 +291,7 @@ public string Read(string host, string username)
291291
Arguments = $"lookup service \"sourcegit\" host {host.Quoted()} account {username.Quoted()}",
292292
RedirectStandardOutput = true,
293293
RedirectStandardError = true,
294-
UseShellExecute = true,
294+
UseShellExecute = false,
295295
CreateNoWindow = true
296296
};
297297

@@ -319,7 +319,7 @@ public void Erase(string host, string username)
319319
Arguments = $"clear service \"sourcegit\" host {host.Quoted()} account {username.Quoted()}",
320320
RedirectStandardOutput = true,
321321
RedirectStandardError = true,
322-
UseShellExecute = true,
322+
UseShellExecute = false,
323323
CreateNoWindow = true
324324
};
325325

0 commit comments

Comments
 (0)