mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-03 04:46:41 +00:00
18 lines
417 B
Go
18 lines
417 B
Go
//go:build unix
|
|||
|
|
|
||
|
|
package constant
|
||
|
|
|
||
|
|
import (
|
||
|
|
"os"
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
resourcePaths = append(resourcePaths, "/etc/config")
|
||
|
|
resourcePaths = append(resourcePaths, "/usr/share")
|
||
|
|
resourcePaths = append(resourcePaths, "/usr/local/etc/config")
|
||
|
|
resourcePaths = append(resourcePaths, "/usr/local/share")
|
||
|
|
if homeDir := os.Getenv("HOME"); homeDir != "" {
|
||
|
|
resourcePaths = append(resourcePaths, homeDir+"/.local/share")
|
||
|
|
}
|
||
|
|
}
|