Keepassxc: AutoType not available when using Wayland

Created on 11 Sep 2018  路  15Comments  路  Source: keepassxreboot/keepassxc

Expected Behavior

AutoType should be available as under X.

Current Behavior

AutoType not available in Wayland

Steps to Reproduce (for bugs)

Login to Plasma Wayland
Open KeePassXC
You will there are no auto login options

Operating system: OS
Debian SID amd64

Wayland Auto-Type refactor

Most helpful comment

All 15 comments

Are you referring to AutoType??

Hi.Yes, thatbis whatnI meant.-JiriOn 12 Sep. 2018 2:14 am, Jonathan White notifications@github.com wrote:Are you referring to AutoType??

鈥擸ou are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.

I can confirm lack of Auto-Type options using Plasma Wayland.

OS: 4.14.65-gentoo x86_64
plasma-5.46.0
wayland-1.15.0

Auto-Type cannot work on Wayland due to security restrictions for which we haven't found a solution yet.

It might be worth to look what https://gitlab.gnome.org/ofourdan/gnome-ponytail-daemon does. I seems to allow writing arbritrary key sequences to windows.

fwiw, there is a keepass plugin that supports this (https://keepass.info/help/kb/autotype_wayland.html), it does require access to /dev/uinput though.

For wlroots based compositors (such as sway) the input-method protocol (https://github.com/swaywm/wlroots/blob/master/protocol/input-method-unstable-v2.xml) or possibly the virtual-keyboard protocol (https://github.com/swaywm/wlroots/blob/master/protocol/virtual-keyboard-unstable-v1.xml) may allow implementing AutoType

I'm using KeePassXC on Arch Linux with Wayland (on KDE) in combination with ydotool, specifically ydotool-git in the AUR. And voil脿 - Autotype works flawlessly!

So perhaps it's possible to integrate ydotool's approach in KeePassXC directly?

Oh nice!!

Mhm, seems like it has a client/server structure because it uses /dev/uinput which requires (usually) root permission. Still better than no autotype I guess :D

Yes, it seems to be similar to how KeePass does it with KPUInput.

https://gitlab.com/dogtail/dogtail/ seems to use the accessibility features in gnome and kde to send text to applications without the need of uinput and as such without any extra daemon.

Ok, dogtail uses ponytail on wayland which I linked above already. Seems to be a rather heavy solution :/

Using the DE's accessibility features is the only correct way to implement it. I only wish there were some kind of standard interface and not several largely incompatible ones, like there always is on Linux.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Throne3d picture Throne3d  路  3Comments

haroldm picture haroldm  路  3Comments

guihkx picture guihkx  路  3Comments

JosephHatfield picture JosephHatfield  路  3Comments

shyim picture shyim  路  3Comments