Bladeren bron

Fix unix search path

世界 3 jaren geleden
bovenliggende
commit
236c034c62
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      constant/path_unix.go

+ 3 - 3
constant/path_unix.go

@@ -1,4 +1,4 @@
-//go:build unix
+//go:build unix || linux
 
 package constant
 
@@ -7,9 +7,9 @@ import (
 )
 
 func init() {
-	resourcePaths = append(resourcePaths, "/etc/config")
+	resourcePaths = append(resourcePaths, "/etc")
 	resourcePaths = append(resourcePaths, "/usr/share")
-	resourcePaths = append(resourcePaths, "/usr/local/etc/config")
+	resourcePaths = append(resourcePaths, "/usr/local/etc")
 	resourcePaths = append(resourcePaths, "/usr/local/share")
 	if homeDir := os.Getenv("HOME"); homeDir != "" {
 		resourcePaths = append(resourcePaths, homeDir+"/.local/share")