Set socketPath for Termux

This commit is contained in:
2025-05-11 16:38:41 -04:00
parent 7ceea99f35
commit 4ddd3cf32c
2 changed files with 8 additions and 3 deletions
+7
View File
@@ -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
+1 -3
View File
@@ -2,8 +2,6 @@
package daemon package daemon
import ( import "path/filepath"
"path/filepath"
)
var socketPath = "/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path var socketPath = "/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path