-
Notifications
You must be signed in to change notification settings - Fork 60
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
Support --secret
flag setting x-kde-passwordManagerHint
#177
Comments
Hm, sounds like a good idea indeed, thanks for bringing it to my attention! It's kind of a shame that this is KDE-specific, I'd prefer a more generic solution at the Wayland protocol level. But on the other hand wl-clipboard has never shied away from making use of GTK- and wlroots-specific protocols, so why not support a KDE-specific MIME type as well. It would probably make sense to also expose this is in |
I'm currently using this patch |
I wrote a similar request at https://bugs.kde.org/show_bug.cgi?id=487359 yesterday and was referred to the x-kde-passwordManagerHint. Is there any chance that this pull request gets merged into main? |
To maybe help this to move forward: I have compared the 2 open PRs that aim to close this issue (#214 and #204) and I think that #204 should be preferred. #214 is overwriting the copied text, making it unavailable to paste, which is not what a user intends after calling wl-copy. #204 allows to paste the sensitive data but sets |
I can't reproduce this problem. First I run
Ignoring the double
This seems like the correct behaviour to me. I think #214 should be merged as-is. Edit: the patched wl-copy from #214 also works nicely in combination with the patched wl-paste from #204:
|
Some password managers, like kde wallet and keepassxc, mark copied passwords as "secret", by
offering the mimetype
x-kde-passwordManagerHint
with the valuesecret
.This stops clipboard managers from saving passwords in history, and optionally stops KDE Connect from forwarding this clipboard data to other devices.
It would be nice to have support for this in wl-clipboard, so I can safely use it to copy passwords from my password store. Adding arbitrary multi-mime copy seems complicated, but it should be easy to add a flag to mark copy data as secret.
The text was updated successfully, but these errors were encountered: