"Remote control requested" dialog when using auto-type feature in KeePassXC

Moving from Windows to a Linux distro with KDE, I stumbled on a few issues and inconveniences, and one of them is connected to using the auto-type feature in KeePassXC password manager.

So, back in Windows, I get used to whenever I press the auto-type keyboard shortcut in KeePass, it types in login in password to a previous active window.
When I do this in Linux for the first time after boot, I get the following dialog popping up:


and the auto-type fails until I press Share. After that, auto-type works fine until next reboot.

It’s not a show stopper, but I would definitely prefer not to do this every time.

So, is it possible to permanently allow the access to input devices for a particular program?

P.S. Plasma 6 is great, loving it so far!

Hi! I’m not an expert on this topic, but for what it’s worth - there are some relatively new capabilities in Plasma to enable persistently granting permissions like that: XDG Portal Pre-Authorization | Developer

While I don’t believe that the graphical interface for managing that has been built, the terminal commands listed there should work as long as you’re using a distribution that provides up-to-date KDE software (this capability was first released in Plasma 6.3).

So for example, if you’re using the Flatpak version of KeePassXC, the following command should work to tell Plasma to remember that permission: flatpak permission-set kde-authorized remote-desktop org.keepassxc.KeePassXC yes

Hopefully that helps, or at least gets you closer to what you’re looking for :slight_smile:

Thanks for your reply.

I use the Flatpak version of KeePassXC indeed.

Unfortunately, the solution you suggested didn’t work for me.

Running flatpak permission-show org.keepassxc.KeePassXC now shows:

Table          Object         App                     Permissions Data
background     background     org.keepassxc.KeePassXC yes         0x00
kde-authorized remote-desktop org.keepassxc.KeePassXC yes         0x00

but using auto-type in KeePassXC for the first time after login still results in the same Remote control requested dialog being shown.