Fix incorrectly moved ssh socket path

This commit is contained in:
Bernd Schoolmann 2024-02-22 14:38:38 +01:00
parent 9fbe5818af
commit 966da90491
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -59,8 +59,8 @@ func (client UnixSocketClient) Connect() (UnixSocketConnection, error) {
panic(err)
}
if runtimeConfig.SSHAgentSocketPath == "" {
if _, err := os.Stat(home + "/.ssh-agent-socket"); err == nil {
runtimeConfig.SSHAgentSocketPath = home + "/.ssh-agent-socket"
if _, err := os.Stat(home + "/.goldwarden-ssh-agent.sock"); err == nil {
runtimeConfig.SSHAgentSocketPath = home + "/.goldwarden-ssh-agent.sock"
} else if _, err := os.Stat(home + "/.var/app/com.quexten.Goldwarden/data/ssh-auth-sock"); err == nil {
runtimeConfig.SSHAgentSocketPath = home + "/.var/app/com.quexten.Goldwarden/data/ssh-auth-sock"
}

View File

@ -53,7 +53,7 @@ var daemonizeCmd = &cobra.Command{
}
}
if runtimeConfig.SSHAgentSocketPath == "" {
runtimeConfig.SSHAgentSocketPath = home + "/.ssh-agent-socket"
runtimeConfig.SSHAgentSocketPath = home + "/.goldwarden-ssh-agent.sock"
if isFlatpak {
runtimeConfig.SSHAgentSocketPath = home + "/.var/app/com.quexten.Goldwarden/data/ssh-auth-sock"
}