blob: afcf73e6da6929815e5d4bb7f0b8431908e5541c (
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/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)
}
|