this post was submitted on 11 May 2024
556 points (96.8% liked)
Programmer Humor
19829 readers
603 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Okay I had no.idea. So on Plasma, I'm guessing when I copy anything, it's writing it both the primary selection, and the clipboard selection and that's how it stays in the clipboard manager thingy?
Not exactly. When you select a text and copy it, the two selections will end up containing the same text, but you can write to either selection without affecing the other by using an API, e.g. a website's "copy to clipboard" button, or
xclip
/wl-copy
.Clipboard managers with a history feature are an altogether different layer on top of the standard selections. Plasma's clipboard manager only cares about the clipboard selection, and even then, there are exceptions (e.g. copying a password for KeepassXC doesn't save it in the history).
Plasma has a setting to synchronize selection and clipboard or something like that.