Implement serving passphrase from daemon

This commit is contained in:
2025-04-13 17:55:57 -04:00
parent a5108bc6cc
commit dc262c87e8
5 changed files with 35 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
package daemon
import "os"
func daemonIsOpen() bool {
// check if socketPath exists and is a file
fileInfo, err := os.Stat(socketPath)
if err != nil {
return false
}
return !fileInfo.IsDir()
}