adding init program

This commit is contained in:
lwoodard
2026-04-13 12:45:41 -06:00
parent 639a08a808
commit 91b7028382
12 changed files with 1035 additions and 8 deletions

View File

@@ -595,12 +595,7 @@ func loadPrivilegedCommands(path string) (map[string]string, error) {
}
func defaultConfigPath() string {
base := os.Getenv("XDG_CONFIG_HOME")
if base == "" {
home, _ := os.UserHomeDir()
base = filepath.Join(home, ".config")
}
return filepath.Join(base, "streamdeck-go", "config.yaml")
return config.DefaultConfigPath()
}
func ensureConfigDir(cfgPath string) error {