This isn't helped by the fact that the mainstream desktop OSes don't have proper clipboard managers bundled by default. Accidentally copying something isn't as big a deal when you have the most recent 200 items you've copied in an easily searchable widget.
Poor API design and the inability for APIs like the clipboard to evolve are part of the reason why desktop Linux's security keeps falling behind other operating systems.
Either way, I'm pretty sure it could be added if someone cared enough, e.g. by adding a new target.
It just seems to me that if someone is able to access your clipboard history you've lost already, and the entire feature seems more of a convenience thing than a security thing.
Win32: https://learn.microsoft.com/en-us/windows/win32/dataxchg/cli...
WinRT: https://learn.microsoft.com/en-us/uwp/api/windows.applicatio...
>Either way, I'm pretty sure it could be added if someone cared enough
That's the problem. Ironically, not enough people care about improving the security and privacy of desktop Linux.
>It just seems to me that if someone is able to access your clipboard history you've lost already
Do you not see how it could be problematic if sensitive things were logged and persisted to disk?
And your link just shows some programmatic access? How do I access that as a user when I press Ctrl+C? I suppose it's "useful" for things like password managers, but since anything can read the clipboard anyway it's a very limited protection. If something is so sensitive that you're using that special programmatic way of storing it then you should be using the clipboard but an actually secure mechanism.
Learning that you can middle click on the back/forward/refresh buttons to open the previous/next/current page (respectively) in a new tab was a game changer for me
Copying should always be deliberate, not something that blasts out your clipboard when you click in the wrong place and select something unintentionally.