3 Commits
Author SHA1 Message Date
RandyTheSilly 13ae080af2 Define socketPath for interactive clients 2025-05-12 21:57:37 -04:00
RandyTheSilly 4bcff52758 Fix build conflict 2025-05-11 16:41:03 -04:00
RandyTheSilly 4ddd3cf32c Set socketPath for Termux 2025-05-11 16:38:41 -04:00
4 changed files with 15 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
//go:build interactive
package daemon
var socketPath string // interactive clients are not expected to daemonize
+7
View File
@@ -0,0 +1,7 @@
//go:build android && termux && !interactive
package daemon
import "path/filepath"
var socketPath = "/data/data/com.termux/files/usr/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path
@@ -1,9 +1,7 @@
//go:build !windows
//go:build !windows && !android && !termux && !interactive
package daemon
import (
"path/filepath"
)
import "path/filepath"
var socketPath = "/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path
@@ -1,4 +1,4 @@
//go:build windows
//go:build windows && !interactive
package daemon