Skip to content
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

Non text support #207

Open
SimonCropp opened this issue Jun 2, 2020 · 7 comments
Open

Non text support #207

SimonCropp opened this issue Jun 2, 2020 · 7 comments

Comments

@SimonCropp
Copy link
Collaborator

to enable copy of binary data. eg files, images, etc

@mfkl do u think this is achievable?

@mfkl
Copy link
Contributor

mfkl commented Aug 10, 2020

Should this warrant a new package? Thinking TextCopy might be confusing for a package name that does copying of non-text things, might be fine though... what do you think?

@SimonCropp
Copy link
Collaborator Author

yeah happy with a rename. but to what?

@mfkl
Copy link
Contributor

mfkl commented Aug 10, 2020

You seem much more inspired than me at naming nugets :D AnyCopy, XCopy, AllCopy, CrossCopy, ClipboardCopy... or just Copy. edit: already taken.

@SimonCropp
Copy link
Collaborator Author

dont know why i closed this

@mcon
Copy link
Contributor

mcon commented Dec 31, 2020

Worth noting that non-text will be a pain on Linux, given xsel is text only https://github.com/kfish/xsel/blob/master/xsel.c#L736 whereas xclip worked for any data type with its -target option - certainly it would be possible to do something gross and base64 encode binary data.

It feels like, going forward, using something like https://github.com/ajnewlands/X11.Net and doing the selector manipulation in process in stead of shelling out could be preferable - less gross and more flexible.

Update: given you always need some background process to serve the clipboard, and there's no way to fork .net to the background in the same way there's actually not really an alternative to shelling out :(

@ricardoboss
Copy link

Can we get at least partial support for some platforms? Like on Windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants