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
This commit is contained in:
Harald Sitter 2022-12-13 13:24:38 +01:00
parent b34a5a4b4b
commit 80ef6295b7

View file

@ -178,7 +178,8 @@ public:
return false; return false;
} }
{ static bool permissionCheckDisabled = qEnvironmentVariableIntValue("KWIN_WAYLAND_NO_PERMISSION_CHECKS") == 1;
if (!permissionCheckDisabled) {
auto requestedInterfaces = client->property("requestedInterfaces"); auto requestedInterfaces = client->property("requestedInterfaces");
if (requestedInterfaces.isNull()) { if (requestedInterfaces.isNull()) {
requestedInterfaces = fetchRequestedInterfaces(client); requestedInterfaces = fetchRequestedInterfaces(client);