github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/cmd/podman/remoteclientconfig/config_linux.go (about) 1 package remoteclientconfig 2 3 import ( 4 "os" 5 "path/filepath" 6 7 "github.com/containers/storage/pkg/homedir" 8 ) 9 10 func getConfigFilePath() string { 11 path := os.Getenv("XDG_CONFIG_HOME") 12 if path == "" { 13 homeDir := homedir.Get() 14 path = filepath.Join(homeDir, ".config") 15 } 16 return filepath.Join(path, "containers", remoteConfigFileName) 17 }