sing-box/constant/path_unix.go

18 lines
412 B
Go
Raw Permalink Normal View History

2022-08-24 04:14:56 +00:00
//go:build unix || linux
2022-07-02 14:55:10 +00:00
package constant
import (
"os"
)
func init() {
2022-08-24 04:14:56 +00:00
resourcePaths = append(resourcePaths, "/etc")
2022-07-02 14:55:10 +00:00
resourcePaths = append(resourcePaths, "/usr/share")
2022-08-24 04:14:56 +00:00
resourcePaths = append(resourcePaths, "/usr/local/etc")
2022-07-02 14:55:10 +00:00
resourcePaths = append(resourcePaths, "/usr/local/share")
if homeDir := os.Getenv("HOME"); homeDir != "" {
resourcePaths = append(resourcePaths, homeDir+"/.local/share")
}
}