func (cc *CommonConfig) NextProfile() string {
	return filepath.Join(cc.ConfDir, "next-profile")
}
NextProfile is the path for the `next-profile` selector configuration file.
package torcx
import (
	"path/filepath"
)
const (
	DefaultRunDir = "/run/torcx/"
	DefaultBaseDir = "/var/lib/torcx/"
	DefaultConfDir = "/etc/torcx/"
	OemStoreDir = OemDir + "store"
	OemProfilesDir = OemDir + "profiles"
	OemRemotesDir = OemDir + "remotes"
	defaultCfgPath = DefaultConfDir + "config.json"
)
func VendorRemotesDir(usrMountpoint string) string {
	if usrMountpoint == "" {
		usrMountpoint = VendorUsrDir
	}
	return filepath.Join(usrMountpoint, "share", "torcx", "remotes")
}
func VendorProfilesDir(usrMountpoint string) string {
	if usrMountpoint == "" {
		usrMountpoint = VendorUsrDir
	}
	return filepath.Join(usrMountpoint, "share", "torcx", "profiles")
}
func VendorStoreDir(usrMountpoint string) string {
	if usrMountpoint == "" {
		usrMountpoint = VendorUsrDir
	}
	return filepath.Join(usrMountpoint, "share", "torcx", "store")
}
func (cc *CommonConfig) RunUnpackDir() string {
	return filepath.Join(cc.RunDir, "unpack")
}
func (cc *CommonConfig) RunBinDir() string {
	return filepath.Join(cc.RunDir, "bin")
}
func (cc *CommonConfig) ProfileDirs() []string {
	return []string{
		VendorProfilesDir(cc.UsrDir),
		OemProfilesDir,
		cc.UserProfileDir(),
	}
}
func (cc *CommonConfig) RunProfile() string {
	return filepath.Join(cc.RunDir, "profile.json")
}
func (cc *CommonConfig) UserStorePath(version string) string {
	storePath := filepath.Join(cc.BaseDir, "store")
	if version != "" {
		storePath = filepath.Join(storePath, version)
	}
	return storePath
}
func (cc *CommonConfig) UserProfileDir() string {
	return filepath.Join(cc.ConfDir, "profiles")
}