add colors/icons file support

cc #505
This commit is contained in:
Gokcehan committed 2022-02-13 16:58:53 +03:00
1 parent 375133e483
commit 17453f10f5
8 files changed
+210 -14

No files matched your search

+12
View File
@@ -31,6 +31,8 @@ var (
var (
gUser *user.User
gConfigPaths []string
gColorsPaths []string
gIconsPaths []string
gFilesPath string
gMarksPath string
gHistoryPath string
@@ -79,6 +81,16 @@ func init() {
filepath.Join(config, "lf", "lfrc"),
}
gColorsPaths = []string{
filepath.Join("/etc", "lf", "colors"),
filepath.Join(config, "lf", "colors"),
}
gIconsPaths = []string{
filepath.Join("/etc", "lf", "icons"),
filepath.Join(config, "lf", "icons"),
}
data := os.Getenv("XDG_DATA_HOME")
if data == "" {
data = filepath.Join(gUser.HomeDir, ".local", "share")