this post was submitted on 17 Feb 2025
2 points (100.0% liked)

KDE

5957 readers
125 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 2 years ago
MODERATORS
 

Long ago from somewhere I can't remember I got a script that sends piped output to klipper - so for example one can pipe the output of a command to klipper and paste it somewhere else, which for me is pretty useful and neat.

It goes like this:

`
#!/bin/sh

function copy {
›   # check for stdin
›   if ! tty -s && stdin=$(</dev/stdin) && [[ "$stdin" ]]; then
›   ›   # get the rest of stdin
›   ›   stdin=$stdin$(cat)
›   ›   # oh, nice - user input! we set that as current
›   ›   # clipboard content
›   ›   qdbus6 org.kde.klipper /klipper setClipboardContents "$stdin"
›   ›   exit
›   fi

›   # if we reach this point no user input was given and we print out the current contents of the clipboard
›   qdbus6 org.kde.klipper /klipper getClipboardContents
}

copy $@

`

The thing is that since the 6.3 update this not longer works - the text is indeed piped to Klipper, but it's not longer possible to paste it somewhere else without going to klipper's entry in the panel tray and clicking the piped text to actually have it available at the clipboard first.

Is this a just me problem or is there any chance that someone else around here is facing the same?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here