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
xenops-image-handle-paste not working in linux! #24
Comments
Hi @OmarAshkar. Could you tell me the version of xenops that you have installed? I don't have a linux machine to hand to test this with your setup, but this is supposed to be working; see my comment here: #19 (comment) |
I have reviewed your code quickly and I think it should work. I will try to debug when I have time. Thank you! |
Ok, on my debugging I found that this let chuck does not get executed at all. Lines 104 to 112 in 4994ae4
I got the image written to me tmp directory, but no prompt for a name or anything! |
Is it a problem with emacs not finding your xclip executable? What do you get if you evaluate |
No, xclip function is evaluated and temporary image is written in /tmp/ directory. I debugged the code line by line, the function |
OK, so it must be the case that both these return Lines 102 to 103 in 4994ae4
If so, that implies that either Is the image that is written to |
You are right on that. I found that the image is empty! (executable-find "xclip") is NOT nil. And no I don't have pngpaste. I don't know if you have any ideas! |
OK cool, I think we should be able to get to the bottom of this then. What I would do is run the xclip command from the command line, outside emacs, and see what's going wrong. (I'm sure you know, in bash you can check the exit status with (call-process "xclip" nil `(:file ,temp-file) nil "-t" "image/png" "-o") It sounds like you're using |
More generally, outside emacs, can you copy image data to the clipboard and confirm that you can use (That works for me on MacOS, after I start a terminal using the program XQuartz.) |
Right, Thanks! I have fixed the xclip flags and corrected in this PR #25. Check it out! Thanks! |
Thanks a lot. I've merged that and it should be automatically picked up by MELPA in the next few hours. |
Hi,
I am trying to the function xenops-image-hande-paste in OS. I am using xfce, doom emacs, xclip 0.13 and xfce4-screenshot.
I got no messages or errors, just nothing!
Any help is highly appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: