AutoType should be available as under X.
AutoType not available in Wayland
Login to Plasma Wayland
Open KeePassXC
You will there are no auto login options
Operating system: OS
Debian SID amd64
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.
I implemented autotype for wayland, still needs some work though.
https://github.com/rockihack/keepassx/blob/wayland-autotype/wayland.txt
https://github.com/rockihack/keepassx/tree/wayland-autotype/src/autotype/wayland
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 :/
I think I'll opt for https://github.com/keepassxreboot/keepassxc/issues/2281#issuecomment-425932745 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.
Most helpful comment
I implemented autotype for wayland, still needs some work though.
https://github.com/rockihack/keepassx/blob/wayland-autotype/wayland.txt
https://github.com/rockihack/keepassx/tree/wayland-autotype/src/autotype/wayland