package config import ( "os" "path/filepath" ) type Config struct { Profile string DNSServer string Command []string } // GetDefaultProfilesDir returns the standard XDG path for wg-wrap profiles. func GetDefaultProfilesDir() string { configHome := os.Getenv("XDG_CONFIG_HOME") if configHome == "" { home, err := os.UserHomeDir() if err != nil { return "etc/wg-wrap/profiles" // Fallback } configHome = filepath.Join(home, ".config") } return filepath.Join(configHome, "wg-wrap", "profiles") }