fix XDG_DATA_HOME detection
This commit is contained in:
BIN
bin/nwg-drawer
BIN
bin/nwg-drawer
Binary file not shown.
2
tools.go
2
tools.go
@@ -214,7 +214,7 @@ func getAppDirs() []string {
|
|||||||
xdgDataDirs := ""
|
xdgDataDirs := ""
|
||||||
|
|
||||||
home := os.Getenv("HOME")
|
home := os.Getenv("HOME")
|
||||||
xdgDataHome := getDataHome()
|
xdgDataHome := os.Getenv("XDG_DATA_HOME")
|
||||||
if os.Getenv("XDG_DATA_DIRS") != "" {
|
if os.Getenv("XDG_DATA_DIRS") != "" {
|
||||||
xdgDataDirs = os.Getenv("XDG_DATA_DIRS")
|
xdgDataDirs = os.Getenv("XDG_DATA_DIRS")
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user