adding init program
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user