[konsole] [Bug 431100] [Wayland] Copy paste from konsole to eclipse and from eclipse to konsole does not work

Oded Arbel bugzilla_noreply at kde.org
Thu Oct 27 10:40:49 BST 2022


https://bugs.kde.org/show_bug.cgi?id=431100

--- Comment #11 from Oded Arbel <oded at geek.co.il> ---
BTW, for people suffering from Eclipse's clipboard deficiency and want a
workaround: I have installed the wl-clipboard package and then use the
following script as a daemon (run it as a background task in your shell, set up
a SystemD user service, whatever):

```
#!/bin/bash

case "$1" in
listen) wl-paste -w "$0"; exit;;
esac

avail_types="$(wl-paste -l)"

if grep -q STRING <<<"$avail_types" && ! grep -q text/plain <<<"$avail_types";
then
        wl-paste -n -t STRING | wl-copy -t text/plain
fi
```

When run as '<script> listen', the script uses the wl-paste and wl-copy command
line tools from wl-clipboard to watch the Wayland clipboard and if it sees the
clipboard advertising "STRING" but not "text/plain", it immediately creates a
"text/plain" copy of the "STRING" clipboard entry.

This does kill the RTF clipboard content advertised by Eclipse, so if you need
that - don't use the "listen" mode, just execute the script (with no
parameters) every time you need a one-off text copy of the clipboard content.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list