-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wl-copy sometimes does not copy, until copying something else into the clipboard manually #112
Comments
Can you please:
|
Ok, seems that in this case, the terminal would paste the old contents, but wl-paste would paste the new. Only had one instance of this so far. |
I am also seeing something like this, system clipboard is behaving weirdly. to replicate copy an image on a firefox webpage paste in a field, ie whatsapp, on ist copy-paste attempt, instead of image, im seeing text like then i copy the image again and, now pasting attempt is successful. On nautilus also, sometimes first ctrl+c dosnt work at all. on sway/arch currently can't replicate with wl-copy/paste, so issue might not be related to them. anything similar on your side ? |
@bool3max given that your comment is gone, I figure there was no bug, just @kushraj so what you're describing is just various clients misbehaving and does not involve wl-clipboard at all, correct? You see, there are tricky details to implementing clipboards, Wayland clipboard included. I trust myself to have implemented things (mostly) correctly — which is why checking with |
yeah, I'm not sure what exactly is broken, will do a thorough check just to be sure. it was annoying me and I just wanted to be sure if it is a brand new general issue. edit : apparently its clipman which is misbehaving, issue occurs when it runs it in background using |
Yes, I realized that that was expected behavior afterwards. Whoops. Though when I made the comment, |
For the sake of logs, the comment has been:
|
Yes, however after executing |
(Yeah, please don't do that. Even if you haven't deleted the comment, all of us who rely on notifications to know when a thread was updated with new info, or reading comments via email, will not see the updates. Case in point, @kushraj has amended their message above saying that it's related to Clipman, but you have probably missed that update.) |
I have this same issue. In thunar, pcmanfm, using right-mouse click copy context or ctrl-c the first time it doesn't copy anything. Re-copy and it's working again. Problem goes away when I killed the "wl-paste -t text --watch clipman store" process that is run in sway config (but then kitty paste doesn't work) |
@kleshas Please attach |
That looks like You could confirm that's the case by running |
|
Ah, so your problem is not with So if I understand you right, then this is the issue with clipman, and you should report it to them. |
OK, my bad. |
Just for awareness, I created an Issue at Clipman, in the hope this might get resolved: https://github.com/yory8/clipman/issues/86 |
I am having an issue where occasionally (such as in the morning these last two days in a row after leaving the PC on) one or both clipboards can't accept new content. Yesterday it was the primary selection. I could not seem to write to it at all (verified with Right now I can copy to either clipboard from qutebrowser, but my scripts that use wl-copy and wl-paste aren't working, and I can't seem to copy to the regular clipboard from the foot terminal. I have tried killing any processes of wl-copy I see in htop and restarting qutebrowser a few times now but still only the primary selection seems to take new content, not the main clipboard. I am not using clipman or the --watch argument anywhere. I'm trying to dump the output of I've manually highlighted + middle clicked a few lines at a time from one shell to an open nvim window to get something. Hopefully I didn't miss anything important. Looks fairly repetitive anyway. wl-copy-debug-logs_2022-11-14-085723.txt I think all my Qt programs such as qutebrowser are running in xwayland at the moment in case that matters. foot is running in wayland. My script using wl-copy and wl-paste commands is of course non-graphical. Checked xwayland vs wayland with |
@Soundtoxin Hmm, back when I used sway (1-2 years ago) there were some clipboard issues with Qt apps and with Xwayland. I don't know if they've been resolved since. Are you sure you aren't hitting one of the sway issues, could you try on GNOME or so? |
I've used Sway for years and this issue only crops up occasionally. I suspect a Sway restart or reboot of my PC would temporarily fix it, and I don't know how to cause it intentionally, so I suspect testing with GNOME would not be especially useful. |
Sometimes, I pipe the output from my password generator into wl-copy. However, it happened now more than once than when pasting, I pasted something else - the old contents of the clipboard. No matter how often I call wl-copy then, it will not copy - until I manually copy something else (anything!) into the clipboard, then wl-copy suddenly works again.
The same happened on Fedora 33 and whatever version of mutter it ships with.
The text was updated successfully, but these errors were encountered: