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 <notifications@github.com> 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. |
Registering a global shortcut, but that might be covered by existing Wayland api. Most likely not, which would make it desktop env specific. /dev/uinput is not an option, requires root. |
|
This is also affected in Gnome (Ubuntu 22.10). |
Auto-type from context menu used to work fine when running Firefox under xwayland, but even this has stopped working since 2.7.0. |
Ubuntu 22.04 Beta, Keepassxc 2.7.0:
|
@dasistwas that is likely because Signal and Chromium are using XWayland, but Firefox, Terminal, and Thunderbird are using native wayland. |
Update from Ubuntu 22.04 Beta: Suddenly auto-type started to work. But version of keepassxc did not change. It is still 2.7.1 |
I'd like to request the documentation at: https://keepassxc.org/docs/KeePassXC_UserGuide.html#_auto_type be added to. I'm on Fedora (Wayland) and it was really difficult to figure out where and how to change either the command line (-platform xcb) for my KeepassXC that was set to Autorun or the environment variable (QT_QPA_PLATFORM=xcb). Some mention of where and how would be nice. Also, the documentation isn't clear in what KPXC is looking for with AutoType to work with applications. For instance, when I try to set it up to work with the password entry in the Virtual Machine Manager or for Grsync, the window names don't show up in KPXC's Advanced > Windows dropdown. And, no matter what I manually type in for a Window name, it doesn't work. |
Ubuntu 22.04 + snap version of Firefox (Ubuntu 22.04 upgrademigrates FF to the snap version automatically): autotype works again. Did not test other programs since I only need keepass for Firefox. |
Wayland is disabled by default in 22.04 because of a bug, may be that's why autotype is working?
…------- Original Message -------
On Friday, April 22nd, 2022 at 8:39 AM, foobar13372 ***@***.***> wrote:
Ubuntu 22.04 + snap version of Firefox (Ubuntu 22.04 upgrademigrates FF to the snap version automatically): autotype works again. Did not test other programs since I only need keepass for Firefox.
—
Reply to this email directly, [view it on GitHub](#2281 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AEUEU2JRXMER3MP2KS75ZNLVGJCRPANCNFSM4FUMUHSQ).
You are receiving this because you commented.Message ID: ***@***.***>
|
no, I am on Wayland. But just realized seems only Firefox and xwayland programs do work with autotype. Terminal does not for example. |
|
Is there any news to this? I am on sway and would like to know how I can get autotype working for firefox. Setting the xcb plattform, enables autotype, but hitting the configured shortcut from keepassxc for autotype doesnt open anything. |
As I know it, Sway does not allow other applications to apply global shortcuts themselves and also I do not know of any Wayland protocol which would implement this. It might be required to configure the shortcut on Sway manually and trigger AutoType on KeePassXC using a command / D-Bus (which is not possible yet?) |
I recently installed Ubuntu 22.04 and ran into this issue. Firefox and Chromium apparently use XWayland, so KeePasXC's Global Auto-Type works there. My main other use of Auto-Type is in the terminal for which I use the Terminator terminal. I use the following (hopefully temporary) workarounds to run Terminator using XWayland when using the Ctrl + Alt + T shortcut and when starting Terminator via its icon in the launcher:
|
Not sure if this is some Gnome garbo, but under KDE Wayland, KeepassXC doesnt even offer the Autotype option?? |
keepassxc/docs/topics/AutoType.adoc Line 10 in 861fe2e
|
So I got the autotype option back, but when hitting the shortcut, there is no popup on wayland, when using it for firefox... |
I can confirm that auto typing is currently working in Wayland normally after the past system updates released in the past few weeks. |
Did you test autotype with the terminal as well? Only xwayland programs seem to work. All wayland windows do not trigger the autotype dialogue when using the global autotype shortcut. |
It doesn't work with the terminal. |
It's just can't work with wayland app. Could you read at least few comment back before posting? #2281 (comment) |
Would it be possible to implement a workaround for now till xdg-desktop-portals implements a global shortcut portal. I was thinking about making keepassxc launch with a --auto-type flag. Adding that to the list of custom shortcuts in gnome-control-panel would resolve the issue for now.
|
Can you guys at least read through the thread before pushing this again. Even if you fix the shortcut registering, you still can't find out the title of the window. And again, the easiest way to move this issue forward is to move the already existing upstream proposals forward:
Why are people pushing this issue every week but not the real underlying issue in the upstream protocols? This is all so backwards. |
This information was provided by @GalaxySnail Currently, we have the global keyboard shortcut portal and libei, which should be good enough for auto-type. For enumerating windows, there is a foreign toplevel list protocol. |
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: