Searched for a few weeks and could not find any solid solution. Found a KDE thread that said it was a issue with flatpak but I don’t even have flatpak installed. Others say it’s Wayland, Do non KDE users on wayland get this too?
I know it’s for security but it’s too damned annoying to be worth it! Should I setup a tiling WM and be done with it? It really is that bad.
All I want to do is play Skyrim without seeing this every 15 minutes!
… Ok.
So, Wayland cannot actually directly allow input events to access the system directly.
It instead passes them off, as a request for access, to xdg-desktop-portal, which prompts the user with an access request.
This should only occur once, user hits ‘grant access’ and then the system remembers this.
(Note that this is a fairly significant problem on its own if the user does not have a mouse and keyboard, such as on a game deck, in situations where the user has no actual way to give inputs that are not moderated by an app)
But instead, it keeps recurring, the system doesn’t remember properly, it’ll work for a bit, and then ask again.
The reporting of bugs I’ve seen like this goes back to around 3 years ago, when people/distros/DEs started to switch and then default to wayland.
What I’ve also seen is far less bug reports from gnome users than kde users, and in at least my own experience, switching to gnome completely solved the ‘constantly re-requesting access’ problem.
It doesn’t fix the problem of ‘how do you grant access the first time if you don’t have a mouse and keyboard’.
So… it seems to me that the more technically accurate thing to say would be:
Because gnome wayland seems to at least remember the granted access once you figure out how to give it once, kde wayland does not.
No, that’s completely wrong. Like I said, Xwayland doesn’t remember the permission, which xdg-desktop-portal-kde would very much support.
You get the exact same prompts every single time on Gnome too.
I am quite confused now.
You seem to be either quite confident or quite knowledgable about this, or both.
If the issue is Xwayland doesn’t remember the permission… why does clicking to grant access work at all, even temporarily?
If the issue is Xwayland doesn’t have the ability to set the permission at all, even temporarily, which it seems to, why is Xwayland not just automatically shunting the actual directive to set the permission over to xdg-desktop-portal, which you say can correctly handle this, on kde.
As I understand it, thats what is supposed to be happening.
The problem is not just that the prompt happens once, the first time you use a new input. There doesn’t seem to be any way to avoid that with Wayland.
The problem is that this prompt keeps happening and is not remembered.
How can it be the case that XWayland can grant you an app temporary permission, but not permanent?
And again… I solved the ‘permission not getting remembered’ problem by switching to Bazzite GNOME.
To me, this strongly implies a disparity in handling this issue between KDE and GNOME… that or Bazzite is doing some kind of special something that others are not.