diff --git a/daemon/1sharedTermux.go b/daemon/1sharedTermux.go new file mode 100644 index 0000000..d4eb069 --- /dev/null +++ b/daemon/1sharedTermux.go @@ -0,0 +1,7 @@ +//go:build android && termux + +package daemon + +import "path/filepath" + +var socketPath = "/data/data/com.termux/files/usr/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path diff --git a/daemon/1sharedUNIXGeneric.go b/daemon/1sharedUNIXGeneric.go index 2278654..7e218bc 100644 --- a/daemon/1sharedUNIXGeneric.go +++ b/daemon/1sharedUNIXGeneric.go @@ -2,8 +2,6 @@ package daemon -import ( - "path/filepath" -) +import "path/filepath" var socketPath = "/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path