[PATCH] clip(): Explicitly set mime-type with wl-copy.
Shea Levy
shea at shealevy.com
Fri Sep 23 20:53:53 UTC 2022
This avoids the need for wl-copy to infer the mime-type, in theory
could prevent accidental overlap with a different mime-type, and works
around a current bug in autodetection[1].
[1]: https://github.com/bugaevc/wl-clipboard/issues/148
---
src/password-store.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/password-store.sh b/src/password-store.sh
index 22e818f..63d553c 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -156,7 +156,7 @@ check_sneaky_paths() {
clip() {
if [[ -n $WAYLAND_DISPLAY ]] && command -v wl-copy &> /dev/null; then
- local copy_cmd=( wl-copy )
+ local copy_cmd=( wl-copy --type 'text/plain;charset=utf-8' )
local paste_cmd=( wl-paste -n )
if [[ $X_SELECTION == primary ]]; then
copy_cmd+=( --primary )
--
2.36.2
More information about the Password-Store
mailing list