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

"Clear clipboard"option does not work under wayland #10855

Closed
1 task done
isingasimplesong opened this issue Sep 2, 2024 · 6 comments
Closed
1 task done

"Clear clipboard"option does not work under wayland #10855

isingasimplesong opened this issue Sep 2, 2024 · 6 comments
Labels
bug desktop Desktop Application

Comments

@isingasimplesong
Copy link

Steps To Reproduce

  1. Go to "Setting > preferences"
  2. Set "Clear clipboard" to any value
  3. Clipboard is never cleared

Expected Result

Clipboard should be cleared

Actual Result

image
10, 7 and 6 are copied from Bitwarden (desktop + browser extension)

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

up to date archlinux, operating under wayland

Installation method

Other

Build Version

24.8.1

Issue Tracking Info

  • I understand that work is tracked outside of GitHub. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@isingasimplesong isingasimplesong added bug desktop Desktop Application labels Sep 2, 2024
@djsmith85
Copy link
Contributor

Likely related/duplicate of #1047 or #2633

@trmartin4
Copy link
Member

@isingasimplesong could you clarify the issue a bit for us? You reference the "Clear clipboard" functionality, which sets an empty value to the clipboard after a configured duration. That is separate from interfacing with clipboard managers, which you appear to be using from the screenshot.

Can you confirm that the issue is related to a clipboard manager that you are using? If so, we would like to change the title of this ticket and classify it as a duplicate of #1047 , as this is where we are tracking support for the necessary APIs to support that on Linux.

@isingasimplesong
Copy link
Author

yes, sorry for the lack of clarity. That screenshot was for illustration, and not very relevant.

In the desktop app, the option to clear clipboard is set to 2 min. But whether that i use a clipboard manager or not, my system clipboard is not cleared. I run cliphist (https://github.com/sentriz/cliphist) but as far as i understand that shouldn't be the issue here

@dani-garcia
Copy link
Member

I tried to check this issue and I can't reproduce it, the value is correctly cleared from clipboard, even if the value stays in history (which is issue #1047). It might be good to know which desktop environment you're using to cause this.

To try to reproduce it I've:

  • Installed latest Bitwarden desktop in Kubuntu 22.04 using Wayland
  • Configured clear clipboard to 10 seconds and copied a password using the copy button
  • Saw that I could immediately paste the value with Ctrl+V in other apps
  • Waited ten seconds and saw that trying to paste with Ctrl+V won't work

If after the 10 seconds pass I press Win+V to open the KDE native clipboard history, I can see the password still there. This is issue #1047.

Note also that the clipboard values only get cleared when using the copy button, if you select the text and use Ctrl+C manually then they won't be cleared (#5857)

@isingasimplesong
Copy link
Author

isingasimplesong commented Oct 28, 2024

I use hyprland, but it works now! Not completely sure if my tests where not accurate or if a recent update in hyprland fixed it, but.. i works.

❯ wl-paste; sleep 31 && echo "after 31 seconds: " && wl-paste
copied-password-from-bitwarden-desktop-as-a-test-again
after 31 seconds:

@dani-garcia
Copy link
Member

Nice! I think this issue can be closed then, we'll track the clipboard history not being cleared in #1047.

Thanks for your help!

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

No branches or pull requests

4 participants