read system-wide configuration at '/etc/lfrc'
This commit is contained in:
1 parent
6c319316e2
commit
638d67c0e4
3 files changed
+13
-8
No files matched your search
@@ -25,8 +25,8 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
gUser *user.User
|
||||
gConfigPath string
|
||||
gUser *user.User
|
||||
gConfigPaths []string
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -41,7 +41,10 @@ func init() {
|
||||
config = filepath.Join(gUser.HomeDir, ".config")
|
||||
}
|
||||
|
||||
gConfigPath = filepath.Join(config, "lf", "lfrc")
|
||||
gConfigPaths = []string{
|
||||
filepath.Join("/etc", "lfrc"),
|
||||
filepath.Join(config, "lf", "lfrc"),
|
||||
}
|
||||
|
||||
gDefaultSocketPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.sock", gUser.Username))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user