diff --git a/cmd/daemonize.go b/cmd/daemonize.go index 8be7cb9..24909cd 100644 --- a/cmd/daemonize.go +++ b/cmd/daemonize.go @@ -3,6 +3,7 @@ package cmd import ( "os" "os/signal" + "strings" "github.com/awnumar/memguard" "github.com/quexten/goldwarden/agent" @@ -22,6 +23,8 @@ var daemonizeCmd = &cobra.Command{ isFlatpak := err == nil if isFlatpak { runtimeConfig.ConfigDirectory = "~/.var/app/com.quexten.Goldwarden/config/goldwarden.json" + userHome, _ := os.UserHomeDir() + runtimeConfig.ConfigDirectory = strings.ReplaceAll(runtimeConfig.ConfigDirectory, "~", userHome) println("Flatpak Config directory: " + runtimeConfig.ConfigDirectory) }