You are not logged in.

#1 2026-05-01 10:59:11

ua4000
Member
Registered: 2015-10-14
Posts: 558

[SOLVED] Wayland wl-clipboard has it's own separate clipboard ?

I'm testing LxQt Wayland (lxqt-wayland-session labwc wl-clipboard) and starting the session with startlxqtwayland.
(BTW this seems to run very good, stable and almost ready for daily usage)

While copy+paste works for all Apps, and between them,
I struggle to find an replacement for X11 xclip:
putting data from a script into the clipboard and using it in an App.

Example

$ df -h | wl-copy 
$ df -h | wl-copy -p
$ df -h | wl-copy -p -f

nothing "arrives" in l3afpad, Thunderbird or Geany.

Only this works between two different Qterminals:

$ df -h | wl-copy
$ wl-paste 
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  3...

Installing wl-clip-persist, and running it, seems not to change anything.

So wl-clipboard is not a 1:1 replacement for  xclip ?
Did I something wrong ?
Is there another way ?

Last edited by ua4000 (2026-05-01 12:22:41)

Offline

#2 2026-05-01 11:47:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,855

Re: [SOLVED] Wayland wl-clipboard has it's own separate clipboard ?

Have you tried to enforce the mime type?
Check "wl-paste -l"

Offline

#3 2026-05-01 12:22:05

ua4000
Member
Registered: 2015-10-14
Posts: 558

Re: [SOLVED] Wayland wl-clipboard has it's own separate clipboard ?

Aah, thanks very much!!!

date | wl-copy -t text/plain

does the trick and now works perfect.

In my 1st usage I had

$ date | wl-copy
$ wl-paste -l
application/octet-stream

Last edited by ua4000 (2026-05-01 12:33:12)

Offline

Board footer

Powered by FluxBB