From d837628b4ca58b4de85c27dbf815decadd4a0903 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 7 Dec 2025 00:31:04 +0900 Subject: internal/system: remove ineffectual join reverting wayland Removing the pathname socket used to be handled separately, now it is done during the Close call. Signed-off-by: Ophestra --- internal/system/dispatcher_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/system/dispatcher_test.go') diff --git a/internal/system/dispatcher_test.go b/internal/system/dispatcher_test.go index 2704bca0..85bd45bf 100644 --- a/internal/system/dispatcher_test.go +++ b/internal/system/dispatcher_test.go @@ -1,6 +1,7 @@ package system import ( + "io" "log" "os" "reflect" @@ -13,7 +14,6 @@ import ( "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/dbus" - "hakurei.app/internal/wayland" "hakurei.app/internal/xcb" ) @@ -270,9 +270,9 @@ func (k *kstub) aclUpdate(name string, uid int, perms ...acl.Perm) error { stub.CheckArgReflect(k.Stub, "perms", perms, 2)) } -func (k *kstub) waylandNew(displayPath, bindPath *check.Absolute, appID, instanceID string) (*wayland.SecurityContext, error) { +func (k *kstub) waylandNew(displayPath, bindPath *check.Absolute, appID, instanceID string) (io.Closer, error) { k.Helper() - return nil, k.Expects("waylandNew").Error( + return io.NopCloser(nil), k.Expects("waylandNew").Error( stub.CheckArgReflect(k.Stub, "displayPath", displayPath, 0), stub.CheckArgReflect(k.Stub, "bindPath", bindPath, 1), stub.CheckArg(k.Stub, "appID", appID, 2), -- cgit v1.3.1