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
Replace copy_to_clipboard code with arboard #76
Comments
I started to work on this, just for fun, but I'm having some problems getting unrelated tests to pass, even before any changes:
Additionally, the Do you have any idea of what may be going on? Is there some special setup that I need first? I'm having a hard time understanding how these tests work, so I'm haven't been able to figure out what's missing. Back to the clipboard issue itself, the changes are very straightforward, but I noticed and just reported a small issue with arboard on Linux (ArturKovacs/arboard#4). |
Hi, thanks for looking into this! The tests need to be run with a single thread ( |
I figured this could be it but, err, got the options wrong and was trying |
Haha yeah |
Doesn't look like there's much happening here for the last year, @jonasmalacofilho, are you still on this? |
So with An additional point to add to this issue is Android support - right now it's done with |
Hello, I would like to work on this issue but it seems that the maintainer of |
Thanks @Jarsop. It seems like there won't be a one size fits all library here so maybe it makes most sense to continue the way it is now and shell out to external programs. In that case, the program used should be a config variable (as requested here) and should support xclip, pbcopy, xsel, termux-clipboard-set, and wl-copy for now. Would be good if it's organized in a way that makes it easy to add more such programs if people request them. Thoughts? |
I suggest adding an array of |
Yes, sounds good. The default value can be set using conditional compilation on the detected OS (so these lines would move here) |
Yes we are aligned :) |
I have a first implementation here. If you have any suggestions, they are welcome. |
arboard seems to do the right thing when it comes to X11 clipboard handling. Should allow replacing the current very ugly xclip/pbcopy hack in
utils.rs
. Also, replacing clipboard with arboard intests/cli.rs
should allow copy tests to run on Linux CI as well, which is ideal.The text was updated successfully, but these errors were encountered: