Skip to content
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

Clearly explain why Auto-Type is disabled under Wayland #3868

Closed
bastiaanb opened this issue Nov 15, 2019 · 13 comments
Closed

Clearly explain why Auto-Type is disabled under Wayland #3868

bastiaanb opened this issue Nov 15, 2019 · 13 comments

Comments

@bastiaanb
Copy link

bastiaanb commented Nov 15, 2019

Expected Behavior

  1. Working Auto-Type, i.e. control-shift-V works and is shown in context menu. I know this depends on Wayland support, so absent that, I woud expect:
  2. Greyed out Auto-Type button / context menu, with eplanation in hover text, or similar.

Current Behavior

Upgraded to Fedora 31, with KeePassXC 2.4.3. Auto-Type was still visible, but partially broken (failing for pasting in FireFox, but still working in Chrome).
Upgraded to KeePassXC 2.5.1. Auto-Type function has vanished without explanation. Gone from context menu, control-shift-V, etc. Auto-Type config is still present in entries and settings.
Release Notes do not mention anything.

Possible Solution

Document this in the app, or at least in the release notes instead of having people hunt for explanations. Eventually I found #3520.

Steps to Reproduce

  1. Install KeePassXC 2.5.1 in Fedora 31 running Wayland
  2. Open database
  3. Search for a way to perform Auto-Type
  4. Fail to find it

Context

Can no longer use Auto-Type with Chrome.

Debug Info

KeePassXC - Version 2.5.1
Revision: 0fd8836

Qt 5.12.5
Debugging mode is disabled.

Operating system: Fedora 31 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 5.3.11-300.fc31.x86_64

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:
libgcrypt 1.8.5

@bastiaanb bastiaanb added the bug label Nov 15, 2019
@droidmonkey droidmonkey changed the title Auto-Type mysteriously disappeared after update to 2.5.1 Clearly explain why Auto-Type is disabled under Wayland Jan 5, 2020
@droidmonkey droidmonkey added this to the v2.6.0 milestone Jan 5, 2020
@latchr
Copy link

latchr commented Apr 7, 2020

I have run into this issue. I had Keepassxc working fine on Fedora 30 (I don't know what version of Keepassxc that was). I have just upgraded to Fedora 31 (gnome, wayland) and now the auto-type is broken in Keepassxc.

The autotype tab in settings is gone, and the autotype entry in the right-click drop-down menu is also missing. I could see no explanation until I found this thread, and now it seems (vaguely) that there is a compatibility issue with Wayland.

However, I certainly had autotype working with Fedora 30, which was also wayland.

@lvanderree
Copy link

@latchr I installed an older version of Keepassxc which still works fine on wayland in fedora 31. But you can also install (the original) keepass which can also auto complete without any problem

@cwmke
Copy link

cwmke commented Apr 17, 2020

I just stumbled into ydotool when looking at Wayland options for autotype. Is this something that could work for Keepassxc?

@droidmonkey
Copy link
Member

droidmonkey commented Apr 17, 2020

Probably not because it is not actively maintained and most likely requires root permission (per their Readme).

@cwmke
Copy link

cwmke commented Apr 17, 2020

Last commit was a couple days ago but I missed the part about /dev/uinput needing root. Oh well.

@latchr
Copy link

latchr commented Apr 20, 2020

@lvanderree I used sudo dnf install keepassxc-2.4.3-6.fc31 to downgrade to an older version (this was the only other option when I did sudo dnf --showduplicates list keepassxc ). With this older version of Keepassxc I do have the autotype tab in the settings dialog, but when I press that key combination with a Firefox window in focus nothing happens. Do I need to do something else to get autotype functioning again?

@phoerious
Copy link
Member

phoerious commented Apr 20, 2020

Wayland is unsupported and the old version enforces X11, which is why it works. Set QT_QPA_PLATFORM=xcb or start KeePassXC with the -platform xcb flag

@Thatoo
Copy link

Thatoo commented May 25, 2020

Wayland is unsupported and the old version enforces X11, which is why it works. Set QT_QPA_PLATFORM=xcb or start KeePassXC with the -platform xcb flag

How to do that when we launch the appimage?

@Thatoo
Copy link

Thatoo commented May 26, 2020

The interesting part for me is that autotype works when I ask keepass to autotype in a "password" field (master password when Thunderbird launch) but not if I want it to autotype in a text edit or the terminal (too bad for ssh passphrase).
I really hope a solution will be find or keepassXC will loose interest under wayland.

@phoerious
Copy link
Member

You can auto-type from XWayland into other XWayland windows.

@Thatoo
Copy link

Thatoo commented May 27, 2020

OK, it's logical.
I've tried to launch thunderbird with $ MOZ_ENABLE_WAYLAND=1 thunderbird and indeed, autotype isn't working to fill the master password at launch... Too bad!

So we should wait for KeepassXC to be fully working under Wayland which is needed as from the next Firefox and Thunderbird version they will launch with Wayland for what I understood.

What about this solution : https://github.com/rockihack/keepassx/tree/wayland-autotype/src/autotype/wayland ?

@Thatoo
Copy link

Thatoo commented Jun 9, 2020

Is it not the same bug as #2281

@droidmonkey droidmonkey modified the milestones: v2.6.0, v2.6.1 Jul 9, 2020
droidmonkey added a commit that referenced this issue Jul 28, 2020
* Close #4206 - include search modifier `!`
* Close #3868 - explain Auto-Type under Wayland
* Fix rendering of admonition blocks on mobile devices
droidmonkey added a commit that referenced this issue Jul 28, 2020
* Close #4206 - include search modifier `!`
* Close #3868 - explain Auto-Type under Wayland
* Fix rendering of admonition blocks on mobile devices
droidmonkey added a commit that referenced this issue Aug 1, 2020
* Close #4206 - include search modifier `!`
* Close #3868 - explain Auto-Type under Wayland
* Fix rendering of admonition blocks on mobile devices
@droidmonkey
Copy link
Member

Added this to our documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants