View Single Post
Old 09-10-2023, 12:10 PM   #140
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 283
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Are you by chance using wayland instead of X11 on your linux box? If so, and if there is a wayland equivalent you could use instead, you might need to tweak these lines. From a google search I think wl-copy and or wl-clipboard might do what you want on wayland.

FWIW, wayland is not yet a choice I would make. Everytime I try it things break sometimes in horrible fashion. If I need to get real work done, turning off wayland on boot is the first thing I do. It is normally okay for playing around but not quite there yet.
Worse yet wayland's implementation varies by desktop chosen (kde vs ...) and so is non-standardized.
When I upgraded to UbuntuStudio 22.04 last year, I found the devs had abandoned XFCE in favour of KDE Plasma. This did cause me a load of problems initially which I found was due to Wayland not playing nicely with my Nvidia graphics card.

My solution was to remove the Nvidia card and resort to the motherboard's onboard graphics chip and this enabled me to use the X server. Since then I haven't had any real problem. I've gotten used to KDE Plasma but don't see any real advantages over XFCE, just some differences that took a little while to get used to.

I've found that bit of code you referred to. It certainly doesn't put anything on my clipboard when I use the plugins 'Copy' button and I lack the competence to work out why or to make a modification.

I do have xsel utility (but not wl-copy or wl-clipboard) and consulting the manpage shows that -b writes to clipboard and -i takes the input. But that doesn't seem to be working.

If I use the plugin's Insert facility, that works and when I do a ctrl-C on the svg code, it goes to my clipboard ok and I can paste it wherever I want it.
philja is offline   Reply With Quote