wl-clipboard icon indicating copy to clipboard operation
wl-clipboard copied to clipboard

When trying to copy anything from discord the process hangs

Open RAZUMNO opened this issue 11 months ago • 6 comments

When trying to copy something from discord, steam (for example, text), and try to paste it to somewhere else (for example to browser or text editor), the process of that app hangs. And also the clipboard can't notice the copied data. Related to this: https://github.com/sentriz/cliphist/issues/140

RAZUMNO avatar Apr 06 '25 17:04 RAZUMNO

Hi,

if you're copying from Discord and pasting into a text editor, how is wl-clipboard involved in this at all?

bugaevc avatar Apr 07 '25 07:04 bugaevc

Uhh... What do you mean? It's... a clipboard utility? I'm trying to copy something to clipboard and it hangs? It doesn't copy the data (text, image) to clipboard.

RAZUMNO avatar Apr 07 '25 12:04 RAZUMNO

I'm trying to copy something to clipboard and it hangs?

Are you trying to copy something using wl-copy? (and not from the Discord app)

It sounds like you're copying and pasting between two applications and not between an application and wl-clipboard, which is why I'm confused about wl-clipboard's involvement in this.

Just in case you're misunderstanding this: the actual clipboard is implemented by your compositor, not by wl-clipboard. wl-clipboard just provides two command-line utilities, wl-copy and wl-paste, to access it.

bugaevc avatar Apr 07 '25 12:04 bugaevc

Well, I'm using clipboard manager cliphist, which is set to watch wl-paste with this:

wl-paste --type text --watch cliphist store
wl-paste --type image --watch cliphist store

Is it means that basically clipboard in compositor tries to copy data and wl-clipboard just provides wl-paste in order to access said data? And the data is corrupted or something?

RAZUMNO avatar Apr 07 '25 13:04 RAZUMNO

Does the hang also happen if you don't run the wl-paste --watch commands? Does it happen when you copy from anything else but Discord?

basically clipboard in compositor tries to copy data and wl-clipboard just provides wl-paste in order to access said data?

Basically that, yeah.

bugaevc avatar Apr 07 '25 13:04 bugaevc

Does the hang also happen if you don't run the wl-paste --watch commands? Does it happen when you copy from anything else but Discord?

Yeah, it does happens when not setting wl-paste --watch. So it's probably hyprland issue then. When commands are set then wl-copy hangs in the processes.

RAZUMNO avatar Apr 07 '25 14:04 RAZUMNO