mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-30 12:31:31 +00:00
18 lines
412 B
Go
18 lines
412 B
Go
//go:build unix || linux
|
|
|
|
package constant
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func init() {
|
|
resourcePaths = append(resourcePaths, "/etc")
|
|
resourcePaths = append(resourcePaths, "/usr/share")
|
|
resourcePaths = append(resourcePaths, "/usr/local/etc")
|
|
resourcePaths = append(resourcePaths, "/usr/local/share")
|
|
if homeDir := os.Getenv("HOME"); homeDir != "" {
|
|
resourcePaths = append(resourcePaths, homeDir+"/.local/share")
|
|
}
|
|
}
|