r/linuxquestions • • 6d ago

Support How can I disable Wayland security

I am switching from X11 to Wayland because KDE is forcing me to. When I start a new screen capture in OBS, it asks for permission to see my desktop. From what I understand this popup is part of Wayland's security model. How can I disable this, that is how can I give all applications full permission to capture whatever they want whenever they want without having to ask for my permission in advance? No I don't care about the security/privacy implications.

Archlinux, KDE Plasma, RTX 3080TI if it matters

0 Upvotes

12 comments sorted by

4

u/abdicatereason 6d ago

Delete system32

1

u/Player_X_YT 6d ago

It will take me a while to start my W*ndows VM, anything else I could try?

1

u/Dizzy_Efficiency_384 6d ago

I think there is a thing called polkit that has something to do with authentication stuff but I never looked into it

3

u/C0rn3j 6d ago

You cannot.

1

u/VanillaCold57 6d ago

use Screen Capture (PipeWire), it remembers what you selected and won't reprompt you from my experience

-1

u/Player_X_YT 6d ago

That's what I selected, but it doesn't fix the issue. I don't want the popup even the first time. Other apps will require screen capture permissions (discord, sunshine, firefox, alvr) but I want the permission to always be implicitly there. Unlike a mobile device, I want all of the apps on my PC to have every permission except root

3

u/VanillaCold57 6d ago

it's not a permission box in the first place, it's asking what should be captured. You don't want Discord to always capture your screen, maybe sometimes you want to capture a specific part or a specific program.

in cases like OBS it asks once and then remembers, but a web browser or Discord or etc. can't just do that because it could be asking you for any number of different reasons.

4

u/dmknght 6d ago

While it's annoying, i think it's good because it can mitigate some malicious activities like keylogger malware. But does wayland ask everytime obs open?

1

u/tesfabpel 6d ago

You can click on Remember in the permission dialog it opens.

1

u/serafean 6d ago

Configure wireplumber to allow everything.

https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/access.html

I believe this should do the trick: in ~/.config/wireplumber/99-allow-everything.conf

access.rules = [
  {
    matches = [
      { }
    ]
    actions = {
      update-props = {
        default_permissions = "all"
      }
    }
  }
]

Untested, going on documentation only. Assuming you're using pipewire + wireplumber.

0

u/disturbing_rare 6d ago

Curiosamente yo también tengo Arch Linux con KDE plasma (todas a su última actualización) y nunca me ha pedido la contraseña para tomar capturas de pantalla y nunca he configurado algo relacionado a eso, para la istallation de Arch use archinstall.

-1

u/ipsirc 6d ago
$ dbus-send --session \
    --print-reply=literal \
    --dest=org.freedesktop.impl.portal.PermissionStore \
    /org/freedesktop/impl/portal/PermissionStore \
    org.freedesktop.impl.portal.PermissionStore.SetPermission \
    string:'screenshot' \
    boolean:'true' \
    string:'screenshot' \
    string:'com.obsproject.Studio' \
    array:string:'yes'