From 4c2b0ec3beb38319f2208841290d93ca50967e96 Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Thu, 20 Jun 2024 17:47:30 -0700 Subject: [PATCH] Fix: Configuration Idiosyncrasies - It's what's for dinner! Hopefully the last configuration related idiosyncrasy I have to address in HellPot for at least a week. --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index e795bb5..925bde3 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -47,6 +47,9 @@ var ( func writeConfig() string { prefConfigLocation, _ := os.UserConfigDir() + if prefConfigLocation != "" { + prefConfigLocation = filepath.Join(prefConfigLocation, Title) + } if prefConfigLocation == "" { home, _ = os.UserHomeDir() @@ -59,6 +62,7 @@ func writeConfig() string { os.Exit(1) } } + Filename = filepath.Join(prefConfigLocation, "config.toml") tomld, terr := toml.Parser().Marshal(snek.All())