You are not logged in.

#1 2024-02-03 17:40:04

ackthet
Member
From: Blacksburg, VA
Registered: 2009-11-13
Posts: 13

Syncing clipboards in Wayland breaks image copy from browser

I'm running sway. Basically, I want highlighted text to be paste-able with ctr-v. The hint in the clipboard archwiki suggests you should run

wl-paste -pw wl-copy

As far as I understand, this should take what's currently in the PRIMARY buffer and copy it to the CLIPBOARD buffer, and it seems to work as expected with text.

However, when I copy an image from my browser (Firefox) using ctr-v, it copies raw HTML:

 <meta http-equiv="content-type" content="text/html; charset=utf-8"><img src="https://blah.tld/slinky.svg" alt="slinky">

. When I copy from other buffers, it works as expected. If I kill the wl-paste command, it starts working as expected. Clearly I'm missing something here, but I'm not sure what.

Edit for clarity: image copy seems to work from other sources. Also, only ctr-v pastes HTML junk, middle mouse button works fine.

Last edited by ackthet (2024-02-04 23:31:43)

Offline

#2 2024-02-03 18:01:46

dogknowsnx
Guest

Re: Syncing clipboards in Wayland breaks image copy from browser

Do you have 'xdg-utils'/'mailcap' installed?

Last edited by dogknowsnx (2024-02-03 18:38:19)

#3 2024-02-03 20:09:44

ackthet
Member
From: Blacksburg, VA
Registered: 2009-11-13
Posts: 13

Re: Syncing clipboards in Wayland breaks image copy from browser

dogknowsnx wrote:

Do you have 'xdg-utils'/'mailcap' installed?

I do.

Offline

#4 2024-02-03 21:02:49

dogknowsnx
Guest

Re: Syncing clipboards in Wayland breaks image copy from browser

Do you use a clipboard manager?

Maybe this can shed some light on the issue:
https://github.com/sentriz/cliphist/issues/28
https://github.com/bugaevc/wl-clipboard/issues/120

#5 2024-02-03 21:08:53

ackthet
Member
From: Blacksburg, VA
Registered: 2009-11-13
Posts: 13

Re: Syncing clipboards in Wayland breaks image copy from browser

dogknowsnx wrote:

Do you use a clipboard manager?

Maybe this can shed some light on the issue:
https://github.com/sentriz/cliphist/issues/28
https://github.com/bugaevc/wl-clipboard/issues/120

I do (clilphist) but disabling it doesn't stop the issue. So I don't think that's it.

I have noticed something else: middle mouse click pastes the image properly. It's just ctr-v that doesn't work. I'll update OP to reflect.

Offline

Board footer

Powered by FluxBB