-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoType not available when using Wayland #2281
Comments
Are you referring to AutoType?? |
Hi.Yes, thatbis whatnI meant.-JiriOn 12 Sep. 2018 2:14 am, Jonathan White <[email protected]> wrote:Are you referring to AutoType??
—You 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 |
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 |
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 |
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 #2281 (comment) 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. |
I'm not very familiar with Wayland in deep, but can text-input-v3 protocol be used to solve the virtual-input problem? already mentioned by #2281 (comment) |
Perhaps, need to check. Thanks for the pointer. |
Could you elaborate on that? How can KeePassXC be configured to use ydotool? I thought to just use it with cmd://, but then the input just goes .. no idea where. |
I don't have KDE Plasma to test right now, but under Gnome 40 with wayland it works ootb. Is this issue still present in plasma? |
I just tested in Plasma and it doesn't work there. Neither global autotype nor manually choosing autotype from Keepass itself are working. Tested on Plasma 5.21.4 on Arch btw. |
I'm on Arch, using KDE/Plasma When installed via Discover/Flatpak, I can't get the auto-type tab to appear under any circumstance. Have tried setting the env var and adding the command flag to no avail. When installed via pacman (kxc v2.7.9), the auto-type tab is already there by default, and when the database is locked it picks up the global hotkey I have set, asking to unlock the database. However, once unlocked, auto-type does nothing. I still tried adding I get this log output when I start keepassxc (installed via pacman) without any arguments:
|
On my Manjaro/Gnome installation via yay AutoType is working and I get
when starting keepassxc It seems to run in Xwayland mode and the error (that also @dasistwas has) seems to be unrelated. EDIT: |
I had to grant permission. That's probably because you already granted it... |
No... After closing the permission is lost and I have to regrant it when using it without |
Recently Gentoo marked Plasma 6 as Stable and masked KDE/Plasma 5 forcing users to update. I faced numerous problems with Wayland even it is Plasma version 6.1. Some were solved, some can be with a little bit of effort, some can be ignored or accepted. But non working AutoType function of KeepAssXC is an absolute blocker for me. Been a duty system administrator on I huge production, I'm forced to use AutoType in various combination primly for login into Windows machines via xfreerdp (we all hate this), typing in root passwords in IPMI sessions for rescuing stack servers and dozens of other scenarios when browser is no use and only AutoType is a solution. Having non-working AutoType simply making impossible to use Wayland.
|
I see the issue somewhere between the Wayland/X compatibility layer. |
May I kindly ask someone to summarize in precise, technical terms the current status of the Auto-type feature on Wayland?
You'd help enormously many users by clarifying things. |
I just tried KeePassXC 2.7.9 running on the Plasma 6 and Arch linux versions bellow and it works out of the box. What I needed to do is autostart my keepassxc with this argument
|
@mareksamec no, it does not work that way. I have all Plasma components equal or grater then 6.1.5, qtbase-6.7.2-r4, kde-frameworks 6.5.0 and running keepasxc with `-platform xcb' does not make autotype work, just enables the menu option back. Maybe frameworks are older then needed... |
I think with the xcb platform it will work for other applications using Xwayland, but not native wayland applications. |
I get it's a long thread, but these are all pretty well clarified in the latest comments already. I went ahead and answered inline though. If you need auto-type over anything else, use pure X11 instead of any wayland. |
Hi, anyone got it to work with hyprland? |
Remember that enabling auto typing has security implications, not just on Wayland, but also under X11. Now that that has been said, I have found the simplest solution to be to update the "share/applications/org.keepassxc.KeePassXC.desktop" with Exec=env QT_QPA_PLATFORM=xcb keepassxc %f This ensures if the application is started correctly. The issue by setting the |
FWIW: |
Thank you for all the comments, we have a working solution to this in development. Please only comment if you have information that can support improving the working solution. |
I have an issue using it with wayland where it doesn't seem to be hitting the shift key? Any time there's a shift character, it types w/o it. What I expect it to type |
The path is missing a |
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
There was no snap, and like this it's a little containerized. --platform xcb switches to an x11 environment because there auto type works. See keepassxreboot/keepassxc#2281
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
The text was updated successfully, but these errors were encountered: