summaryrefslogtreecommitdiff
path: root/cmd/podman/remoteclientconfig/config_linux.go
blob: 5d27f19f20158be672ae7841f87aae23fe170d45 (plain)
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/docker/docker/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)
}