diff --git a/get_clients.go b/get_clients.go index 4c42986..01a8717 100644 --- a/get_clients.go +++ b/get_clients.go @@ -82,7 +82,7 @@ func WaitForDefaultClient(ctx context.Context) (*Client, error) { func WaitForClient(ctx context.Context, signature string) (*Client, error) { lockFilePath := fmt.Sprintf("/run/user/1000/hypr/%s/hyprland.lock", signature) - lockFileExists := !waitFor(ctx, func() bool { + lockFileExists := waitFor(ctx, func() bool { _, err := os.Stat(lockFilePath) return !errors.Is(err, os.ErrNotExist) })