From 80ef6295b764ce5346bb3f8a73dba11dde94793a Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Tue, 13 Dec 2022 13:24:38 +0100 Subject: [PATCH] wayland: offer opt out from permission checks we need this because our paths in CI contexts are mutable and as such the regular permission logic must not be applied --- src/wayland_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wayland_server.cpp b/src/wayland_server.cpp index 95b4827aa3..02ffcfc913 100644 --- a/src/wayland_server.cpp +++ b/src/wayland_server.cpp @@ -178,7 +178,8 @@ public: return false; } - { + static bool permissionCheckDisabled = qEnvironmentVariableIntValue("KWIN_WAYLAND_NO_PERMISSION_CHECKS") == 1; + if (!permissionCheckDisabled) { auto requestedInterfaces = client->property("requestedInterfaces"); if (requestedInterfaces.isNull()) { requestedInterfaces = fetchRequestedInterfaces(client);