reactivate works through ipc now, at least on Mac

This commit is contained in:
Drew Weymouth
2024-06-12 09:07:15 -07:00
parent e0974fdb03
commit 8e815c644a
6 changed files with 67 additions and 90 deletions
+8 -1
View File
@@ -2,7 +2,10 @@
package ipc
import "net"
import (
"net"
"os"
)
func Dial() (net.Conn, error) {
// TODO - use XDG runtime dir, also handle portable mode
@@ -12,3 +15,7 @@ func Dial() (net.Conn, error) {
func Listen() (net.Listener, error) {
return net.Listen("unix", "/tmp/supersonic.sock")
}
func DestroyConn() error {
return os.Remove("/tmp/supersonic.sock")
}