-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Doesn't work with some target application on Windows 10 #3
Comments
Hi, thanks for reporting your experience on Windows. In fact, I am not an active Windows user, I added the Windows support while I was actively using Windows about a month ago and I don't have a window environment at the moment. As I remember from the dev experience, Window support for PNG data highly depends on the target application and requires either they provide valid BMP encoded header information in the clipboard or the target application handles the header well, sadly some of them does not and I tried my best to handle all the cases that I found. Since I worked one specific use of this package, which is midgard (a clipboard sharing service), works well on transferring image data between three systems (linux/windows/mac) and copy/pasting images between gclip and chrome (google slides as an example), then I published this package as a general abstraction. I will try to see if I could find a windows environment tomorrow to further verify your case. Before that:
|
First of all thanks for your very fast answer.
|
Interesting, how did it work before, but nothing works now. |
I got a fix and I will push it soon. |
The bug is fixed in v0.4.5. |
Hi, congratulations for your library, it is very useful and especially it's written in pure Go.
I have no problems at all while running on Linux, but when it comes to Windows problems magically appear (as always).
Basically, I am putting an image received from the network into the clipboard, but on Windows I get a broken clipboard, which makes impossible to copy-paste anything until I stop the application.
Using the clipboard history on Windows 10 I can partially see the image sent, but anyway all is gone.
The image I am sending is PNG encoded at the source, then send to my application which takes the image bytes received in a multipart HTTP form and puts it into the clipboard.
Thanks for help.
UPDATE:
I tried the demo tool
gclip
and it is able to save to a file the clipboard content, while ctrl+v (or gui equivalent) simply doesn't work as I said before. Once the file is saved, the clipboard begins to work again and I'm able to paste again.The text was updated successfully, but these errors were encountered: