-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fetch clipboard from other side (files) fails #21
Comments
does it work if you install xsel? |
Yes, it does. |
I think clipboardy which ezshare uses needs some way to copy the clipboard. Without xsel it seems to not be able to do that |
In fact, they already have an open issue regarding this problem. |
@mifi Actually, clipboardy has fallback binaries included, so it should work even without xsel installed. It tries to spawn C:\snapshot\ezshare\node_modules\clipboardy\fallbacks\windows\clipboard_x86_64.exe which of course doesn't exist here.
As RetGal is also using the standalone version, it's surely linked. |
Ahh. So in such case maybe during build we need to extract the fallback binaries and place them along with the ezshare exe (so it cannot be only a single EXE anymore if we want to support fallback) |
Yes, or they could be extracted from the snapshot at run time, like suggested here (vercel/pkg#342). |
I guess the best solution would be to use native code directly from node as the fallback, however it seems like pkg does not yet support native. If you want you could have alook at this. A problem could be that when there is an additional exe bundled along with ezshare, maybe Windows/MacOS will refuse to let ezshare execute the unsigned binary. |
Will make a pull request very soon with bundled binaries for Windows and Linux (macOS relies on included system commands) |
When I try to
fetch clipboard from other side
(which is actually on the same host running Debian 10)I get an
copy clipboard failed
error.The content of the
client-clipboard-1609069044630.txt
:The error thrown in the terminal:
The text was updated successfully, but these errors were encountered: