read system-wide configuration on windows
This commit is contained in:
parent
638d67c0e4
commit
2d821216a8
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user