clip icon indicating copy to clipboard operation
clip copied to clipboard

Copied text cannot be pasted to Xed text editor immediately

Open dacap opened this issue 5 years ago • 3 comments

I didn't test it yet, but it was reported that the text copied from a program using the clip library, cannot be pasted on the Xed text editor immediately (the text is copied when the program is closed).

dacap avatar Jul 01 '19 13:07 dacap

Hey @dacap,

First of all, thank you for the great work! One of my users is currently experiencing the same issue, do you have any idea on what might be causing it? So far, what I can tell is that:

  • The application hangs (Xed, Thunderbird and others) if the clipboard is copied with clip, and the operation takes multiple seconds
  • If we use the xclip command line utility instead, the clipboard operation works instantaneously

My guess is that for certain applications, some lock contention issue is taking place and that prevents clip from working correctly... Given that xclip is not suffering from this issue, we might take inspiration from it to understand the underlying cause. What you think?

federico-terzi avatar Jan 15 '22 20:01 federico-terzi

Hi @federico-terzi, I'll take this issue next month with more free time, I'll try to debug the Xed text editor and some clip example to check where everything hangs.

dacap avatar Jan 16 '22 15:01 dacap

@dacap Thanks! I'll make sure to update the issue if I discover something new :)

federico-terzi avatar Jan 17 '22 18:01 federico-terzi

Hi @federico-terzi, I have just pushed a fix to the main branch (4dee1eadd6ca178e4692d757cf2bc96c6dddec2b) that might be related to this issue in case that you want to give it a try.

dacap avatar Oct 24 '23 20:10 dacap

Closing this as it looks fixed (tested with xed on WSL).

dacap avatar Jan 10 '24 17:01 dacap