keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.07k stars 1.42k forks source link

Clipboard is not cleared after configured delay #10880

Closed FM33 closed 3 weeks ago

FM33 commented 3 weeks ago

Overview

Clipboard is not cleared after configured delay

Steps to Reproduce

Select an entry Click copy password to clipboard Alt-tab to another application and wait for the timer to expire Press Ctrl-V : The password is still there

Expected Behavior

The password to be wiped from clipboard

Actual Behavior

Passwors remains in clipboard until next copy operation.

Context

Using toolbar icons to copy usernames and passwords, then alt-tab to browser window.

KeePassXC - Version 2.7.8 Révision : f6757d3

Qt 5.15.13 Le mode débogage est désactivé.

Système d’exploitation : Ubuntu 24.04 LTS Architecture de l’unité centrale : x86_64 Noyau : linux 6.8.0-35-generic

Extensions activées :

Bibliothèques cryptographiques :

Operating System: Ubuntu 24.04 Desktop Env: Gnome 46 Windowing System: Wayland

droidmonkey commented 3 weeks ago

This was explicitly fixed for 2.7.8 (and tested): https://github.com/keepassxreboot/keepassxc/pull/10624

Make sure you have clipboard clearing enabled in application settings, security tab.

Also make sure you have wl-copy installed.

FM33 commented 3 weeks ago

Yes, it is enabled and I have the countdown in status bar. Just selecting an entry, clicking copy password, wait the end of countdown and pasting in firefox's search bar. It is pasting the password. Same with username.

droidmonkey commented 3 weeks ago

Can you confirm if you have the environment variable WAYLAND_DISPLAY defined?

FM33 commented 3 weeks ago

More details : If I click the copy button and do nothing until the end of timer : not cleared If I click the copy button and click elsewhere in the app : cleared after delay If I click the copy button and click elsewhere in the app, then switch to another app : not cleared

FM33 commented 3 weeks ago
$ echo $WAYLAND_DISPLAY
wayland-0
droidmonkey commented 3 weeks ago

I could not replicate your issue after installing wl-clipboard package that delivers wl-copy program. I did replicate it when using the Flatpak distribution method, but that is to be expected since it is sandboxed.