reactivate works through ipc now, at least on Mac
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user