[PATCH] Support wl-copy --sensitive flag

Nemo me at captnemo.in
Tue Mar 24 18:05:46 UTC 2026


Hi all,

Attaching a patch to add support for --sensitive flag in wl-copy 
invocations.

wl-clipboard landed a change recently in 2.3.0[0,1] that adds support
for a --sensitive flag. It sets a hint (also shared by other password
managers such as KeePassXC) that marks the clipboard as sensitive.

Other tools (such as cliphist) can then decide to ignore contents. I've 
tested this against cliphist[2], which ignores all `pass -c` contents 
and they are not recorded in the cliphist history.

The patch is straight-forward, and checks for `--sensitive` via a grep 
on the `--help` command. Other options (checking for --version, or 
calling it twice) seemed worse.

Thanks,
Nemo

[0]: https://github.com/bugaevc/wl-clipboard/releases/tag/v2.3.0
[1]: 
https://github.com/bugaevc/wl-clipboard/commit/e3c1b21ddd0885fba909602cf21e9f4f35862dea
[2]: https://github.com/sentriz/cliphist/issues/58#issuecomment-3732547957
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-wl-copy-s-sensitive-flag.patch
Type: text/x-patch
Size: 943 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20260324/97e2610c/attachment.bin>


More information about the Password-Store mailing list