read system-wide configuration on windows

This commit is contained in:
Gokcehan 2018-06-28 19:45:59 +03:00
parent 638d67c0e4
commit 2d821216a8

View File

@ -30,7 +30,10 @@ func init() {
// remove domain prefix // remove domain prefix
gUser.Username = strings.Split(gUser.Username, `\`)[1] gUser.Username = strings.Split(gUser.Username, `\`)[1]
gConfigPaths = []string{filepath.Join(gUser.HomeDir, "AppData", "Local", "lf", "lfrc")} gConfigPaths = []string{
filepath.Join(os.Getenv("ProgramData"), "lf", "lfrc"),
filepath.Join(os.Getenv("LOCALAPPDATA"), "lf", "lfrc"),
}
} }
func pauseCommand() *exec.Cmd { func pauseCommand() *exec.Cmd {