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

"Clipboard clear" not working while keepassxc running in the background (Fedora 36 (Wayland) / Gnome 42) #8171

Closed
hexchills opened this issue Jun 19, 2022 · 6 comments

Comments

@hexchills
Copy link

hexchills commented Jun 19, 2022

Overview

When i change focus to another app, at the time when I use button - "Copy Password", with clipboard timeout (5 seconds) from password entry or password generator, after timeout i still have my password at clipboard and can paste it anywhere

Steps to Reproduce

  1. Go to Settings -> Security -> Clear clipboard after -> Turn on (any time)
  2. Copy password from password generator entry or just from passwords base entry
  3. During the timeout countdown, change the focus to another app
  4. After timeout, paste password in a text editor / browser or anything else (Don't open the app until the countdown has passed. In that case, clipboard clear - works just fine)

Expected Behavior

Clipboard clear should work, in any case, except if i close database

Actual Behavior

Clipboard clear not working (after countdown timeout) when switching focus to another app.

Context

KeePassXC - 2.7.1
Revision: 5916a8f

Operating System: Linux Fedora 36
Desktop Env: Gnome 42
Windowing System: Wayland

P.S. Sorry for my English :)

@hexchills hexchills added the bug label Jun 19, 2022
@hexchills hexchills changed the title Clipboard clear not working in certain cases (Fedora 36 / Gnome 42) Clipboard clear not working in certain cases (Fedora 36 (Wayland) / Gnome 42) Jun 19, 2022
@hexchills hexchills changed the title Clipboard clear not working in certain cases (Fedora 36 (Wayland) / Gnome 42) "Clipboard clear" not working in certain cases (Fedora 36 (Wayland) / Gnome 42) Jun 19, 2022
@hexchills hexchills changed the title "Clipboard clear" not working in certain cases (Fedora 36 (Wayland) / Gnome 42) "Clipboard clear" not working while keepassxc running in the background (Fedora 36 (Wayland) / Gnome 42) Jun 19, 2022
@droidmonkey
Copy link
Member

This is a qwayland or wayland issue, not us.

@droidmonkey droidmonkey closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2022
@PaulRivier
Copy link

PaulRivier commented Jun 26, 2024

Hello,

same issue here, debian 12, gnome, wayland, KeePassXC.
Being on Wayland, I can't use autotype, and as it seems, clipboard does not get cleared of my passwords.
I understand this comes from wayland, however there is some usability concern here, since as secure as KeePassXC may be, having no safe way to actually use passwords is a problem.
For some reasons, using "wl-paste" (from "wl-clipboard" package) does not exhibit the same problem. wl-paste will replace clipboard selection, even if terminal is out of focus when command get called (sleep 10 && wl-paste ...).
I have not investigated more why it does work with wl-clipboard, but hopefully there is a solution to be found.
Thank you for your good work on KeePassXC.

Regards,

@droidmonkey
Copy link
Member

This is actually a gnome issue, not a wayland issue

@PaulRivier
Copy link

Thank you. Can we envision a fix, or a workaround, so that it works on Gnome ?
Since "wl-paste" succeeds at changing clipboard content in Gnome whatever the focus, there must be a way.
If you feel like this is an ever moving target, maybe the workaround can take the form of a few settings for custom shell commands to control the clipboard copy/past/clear operations. They would be used by KeePassXC to interact with the clipboard of the user, according to the desktop of the user. I am pretty sure there are CLI tools on most environments to interact with clipboard variants. Using CLI would allow to adapt without bindings to unwanted dependencies.
Regards,

@droidmonkey
Copy link
Member

We already did: #10624

However this won't work for snap or flatpak right now

@PaulRivier
Copy link

Great. Can't wait to try.
Regards,

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

3 participants