Add more logging to path selection
This commit is contained in:
parent
93a727260a
commit
8553e0d798
1 changed files with 8 additions and 2 deletions
|
|
@ -47,15 +47,21 @@ var daemonizeCmd = &cobra.Command{
|
|||
_, err := os.Stat("/.flatpak-info")
|
||||
isFlatpak := err == nil
|
||||
if runtimeConfig.GoldwardenSocketPath == "" {
|
||||
runtimeConfig.GoldwardenSocketPath = home + "/.goldwarden.sock"
|
||||
if isFlatpak {
|
||||
fmt.Println("Socket path is empty, overwriting with flatpak path.")
|
||||
runtimeConfig.GoldwardenSocketPath = home + "/.var/app/com.quexten.Goldwarden/data/goldwarden.sock"
|
||||
} else {
|
||||
fmt.Println("Socket path is empty, overwriting with default path.")
|
||||
runtimeConfig.GoldwardenSocketPath = home + "/.goldwarden.sock"
|
||||
}
|
||||
}
|
||||
if runtimeConfig.SSHAgentSocketPath == "" {
|
||||
runtimeConfig.SSHAgentSocketPath = home + "/.goldwarden-ssh-agent.sock"
|
||||
if isFlatpak {
|
||||
fmt.Println("SSH Agent socket path is empty, overwriting with flatpak path.")
|
||||
runtimeConfig.SSHAgentSocketPath = home + "/.var/app/com.quexten.Goldwarden/data/ssh-auth-sock"
|
||||
} else {
|
||||
fmt.Println("SSH Agent socket path is empty, overwriting with default path.")
|
||||
runtimeConfig.SSHAgentSocketPath = home + "/.goldwarden-ssh-agent.sock"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue