Skip to content

Commit

Permalink
Add more logging to path selection
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Feb 23, 2024
1 parent 93a7272 commit 8553e0d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmd/daemonize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit 8553e0d

Please sign in to comment.