Implement serving passphrase from daemon

This commit is contained in:
RandyTheSilly committed 2025-04-13 17:55:57 -04:00
1 parent a5108bc6cc
commit dc262c87e8
5 files changed
+35 -15

No files matched your search

+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()
}