mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
feature: supports to use git-credential-libsecret instead of git-credential-manager on Linux (#1560)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -310,6 +310,20 @@ namespace SourceGit.ViewModels
|
||||
set => SetProperty(ref _gitDefaultCloneDir, value);
|
||||
}
|
||||
|
||||
public bool UseLibsecretInsteadOfGCM
|
||||
{
|
||||
get => Native.OS.CredentialHelper.Equals("libsecret", StringComparison.Ordinal);
|
||||
set
|
||||
{
|
||||
var helper = value ? "libsecret" : "manager";
|
||||
if (OperatingSystem.IsLinux() && !Native.OS.CredentialHelper.Equals(helper, StringComparison.Ordinal))
|
||||
{
|
||||
Native.OS.CredentialHelper = helper;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int ShellOrTerminal
|
||||
{
|
||||
get => _shellOrTerminal;
|
||||
|
||||
Reference in New Issue
Block a user