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

Wayland support #38

Open
rektide opened this issue Jun 15, 2018 · 3 comments
Open

Wayland support #38

rektide opened this issue Jun 15, 2018 · 3 comments

Comments

@rektide
Copy link

rektide commented Jun 15, 2018

Wayland is a new display manager that's about to ship as a default option in the upcoming Red Hat 8, and will be seeing increasing adoption on additional distros as well.

Best resource I've found with resources for talking to the Wayland clipboard is this stackoverflow.

(Alas at the current time Wayland is a pretentious gasbag that declares only input events are supposed to be able to write to the clipboard, but it appears to be up to the compositor/desktop-env to enforce this. Grah.)

@bazzargh
Copy link

Was wondering about how to do this in wayland too, found this https://github.com/bugaevc/wl-clipboard ... seems very new so ymmv

@ralsei
Copy link

ralsei commented Apr 15, 2020

So, stressing the fact that I'm NOT a JS dev by any means, I tried my hands at this: the results can be found in the wayland branch of my fork https://github.com/ralsei/clipboardy/tree/wayland. This probably broke X support as well due to a couple of hacks I did.

The aforementioned wl-clipboard is now relatively mature and ready for usage. The problem is that wl-copy, the Wayland equivalent to xsel etc, forks to the background.

scr_2020-04-15_14-37-49

Something would have to be done to allow wl-copy to fork. Don't know how to pull that off. Would be the equivalent of echo input | wl-copy -f & in shell.

@jcorbin
Copy link

jcorbin commented Jun 2, 2022

Something would have to be done to allow wl-copy to fork. Don't know how to pull that off. Would be the equivalent of echo input | wl-copy -f & in shell.

So why does it matter to this library that wl-copy forks? What needs to be done about that?

Asking as a wayland user quite keen to use this package, and willing to put in the time implementing $whatever you'd imagined here...

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

No branches or pull requests

5 participants