read system-wide configuration at '/etc/lfrc'

This commit is contained in:
Gokcehan committed 2018-06-28 19:44:50 +03:00
1 parent 6c319316e2
commit 638d67c0e4
3 files changed
+13 -8

No files matched your search

+3 -3
View File
@@ -16,8 +16,8 @@ var (
)
var (
gUser *user.User
gConfigPath string
gUser *user.User
gConfigPaths []string
)
func init() {
@@ -30,7 +30,7 @@ func init() {
// remove domain prefix
gUser.Username = strings.Split(gUser.Username, `\`)[1]
gConfigPath = filepath.Join(gUser.HomeDir, "AppData", "Local", "lf", "lfrc")
gConfigPaths = []string{filepath.Join(gUser.HomeDir, "AppData", "Local", "lf", "lfrc")}
}
func pauseCommand() *exec.Cmd {