Open hightowe opened 5 months ago
@hightowe : I approve of trying to add Wayland support to Clipboard.pm. It's not a feature I currently must have, but I'll try to review, test, and hopefully release pull-requests to implement it.
Looks like this was an invalid bug report... https://sourceforge.net/p/kpcli/bugs/53/#4d11/d45c
I setup a Fedora-39 environment in which to code wl-clipboard support into Clipboard, and after getting that done it all appears to be unecessary. Instead, I just installed xclip and it worked...
$ cat ./cbtest.pl
#!/usr/bin/perl
use strict;
use Clipboard; # from perl-Clipboard
system("cat /etc/os-release | grep -E '^PRETTY_N'");
system("set | grep -E 'DISPLAY='");
my $cpval = 'foo';
Clipboard->copy("$cpval\n");
print "Pasting '$cpval' here: ". Clipboard->paste;
exit;
And then running that in Fedora 39 under Wayland:
$ ./cbtest.pl
PRETTY_NAME="Fedora Linux 39 (Workstation Edition)"
BASH_EXECUTION_STRING='set | grep -E '\''DISPLAY='\'''
DISPLAY=:0
GNOME_SETUP_DISPLAY=:1
WAYLAND_DISPLAY=wayland-0
Pasting 'foo' here: foo
Sorry for the bother...
Turns out this was a legitimate issue... I added the support and it is in this PR: https://github.com/shlomif/Clipboard/pull/14
@hightowe : hi, does version 0.30 works for you?
I am the author of kpcli: https://kpcli.sourceforge.io/
On this bug report, there is an ask to support clipboard functionality on Wayland: https://sourceforge.net/p/kpcli/bugs/53/
It seems that wl-clipboard is possible the correct way to implement that: https://github.com/bugaevc/wl-clipboard
This is a request to add Wayland support to Clipboard. I am willing to pitch in and help, if needed, but I don't currently have anything running Wayland.