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

don't store if MIME==x-kde-passwordManagerHint #93

Closed
wants to merge 1 commit into from
Closed

don't store if MIME==x-kde-passwordManagerHint #93

wants to merge 1 commit into from

Conversation

mjholub
Copy link

@mjholub mjholub commented Apr 1, 2024

This is a very simple way to resolve #80 done by launching a subcommand and matching it's output against x-kde-passwordManagerHint, although I've also tried a more low-level solution using a native Go wayland library, see mjholub/cliphist@low-level-polling, but I'm not really sure how to properly capture the received data.

@sentriz
Copy link
Owner

sentriz commented Apr 1, 2024

I think this would make more sense to live with wl-paste. eg if there was a --watch --type text!x-kde-passwordManagerHint or something

@sentriz
Copy link
Owner

sentriz commented Apr 1, 2024

or generally some way for wl-paste to not call the watched command if the there is a particular meme on offer

what do you think @bugaevc

@bugaevc
Copy link

bugaevc commented Apr 1, 2024

wl-paste should set CLIPBOARD_STATE=sensitive (once bugaevc/wl-clipboard#204 or an equivalent gets merged) in that case, but it will still run the command; it's up to you to decide to ignore it based on CLIPBOARD_STATE being sensitive.

@sentriz
Copy link
Owner

sentriz commented Apr 1, 2024

ah i see, then @mjholub we can wait until bugaevc/wl-clipboard#204, since cliphist already supports the sensitive var https://github.com/sentriz/cliphist/blob/master/cliphist.go#L57

thanks @bugaevc!

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

Successfully merging this pull request may close these issues.

Implement secret clipboard entry conventions
3 participants