From f7662457a9e636d4a23d5917ec5aed0ade982852 Mon Sep 17 00:00:00 2001 From: Milarin Date: Thu, 16 May 2024 18:26:35 +0200 Subject: [PATCH] moved hyprland sockets to new locations --- get_clients.go | 4 ++-- model_instance.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/get_clients.go b/get_clients.go index 5ead515..9f1613e 100644 --- a/get_clients.go +++ b/get_clients.go @@ -13,7 +13,7 @@ import ( ) func GetClient(signature string) (*Client, error) { - lockFilePath := fmt.Sprintf("/tmp/hypr/%s.lock", signature) + lockFilePath := fmt.Sprintf("/run/user/1000/hypr/%s/hyprland.lock", signature) file, err := os.Open(lockFilePath) if err != nil { @@ -50,7 +50,7 @@ func GetDefaultClient() (*Client, error) { } func GetClients() ([]*Client, error) { - entries, err := os.ReadDir("/tmp/hypr") + entries, err := os.ReadDir("/run/user/1000/hypr") if err != nil { return nil, err } diff --git a/model_instance.go b/model_instance.go index 877e811..a65f6f7 100644 --- a/model_instance.go +++ b/model_instance.go @@ -17,9 +17,9 @@ func (c Client) String() string { } func (c Client) SocketPath() string { - return fmt.Sprintf("/tmp/hypr/%s/.socket.sock", c.Signature) + return fmt.Sprintf("/run/user/1000/hypr/%s/.socket.sock", c.Signature) } func (c Client) EventSocketPath() string { - return fmt.Sprintf("/tmp/hypr/%s/.socket2.sock", c.Signature) + return fmt.Sprintf("/run/user/1000/hypr/%s/.socket2.sock", c.Signature) }