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);