termux-packages/packages/v2ray/common-platform-others.go.patch

16 lines
581 B
Diff
Raw Normal View History

2022-02-17 10:26:42 +01:00
--- a/common/platform/others.go
+++ b/common/platform/others.go
@@ -31,9 +31,9 @@
defPath := filepath.Join(assetPath, file)
for _, p := range []string{
defPath,
- filepath.Join("/usr/local/share/v2ray/", file),
- filepath.Join("/usr/share/v2ray/", file),
- filepath.Join("/opt/share/v2ray/", file),
+ filepath.Join("@TERMUX_PREFIX@/local/share/v2ray/", file),
+ filepath.Join("@TERMUX_PREFIX@/share/v2ray/", file),
+ filepath.Join("@TERMUX_PREFIX@/opt/v2ray/share/", file),
} {
if _, err := os.Stat(p); err != nil && errors.Is(err, fs.ErrNotExist) {
continue