1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package remoteclientconfig import ( "os" "path/filepath" "github.com/containers/storage/pkg/homedir" ) func getConfigFilePath() string { path := os.Getenv("XDG_CONFIG_HOME") if path == "" { homeDir := homedir.Get() path = filepath.Join(homeDir, ".config") } return filepath.Join(path, "containers", remoteConfigFileName) }