Klipper save copied items permanently in "~/.local/share/klipper/history2.lst" without applying any kind of encryption, and those items persist across multiple logins/reboots, so any previously copied password will always be available and easy to find by any malicious script or program downloaded by user, this is considered high risk for most average users. I know copying passwords should be done from specialized apps that clear copied passwords from clipboard after certain timeout, or not even use system clipboard manager and consume ctrl+v and paste events/actions to provide copied passwords. But in Plasma we lack any kind of integrated app or widget that manages saving/copying logins and passwords. In other systems that have simple clipboard manager this problem has lower risk because the clipboard is replaced after any new copy (because all happen in volatile memory) and it's cleared after rebooting or logging out so the high sensible data are lost. NB: I found plasma-pass widget that could be improved to solve this problem but for now it clears the whole clipboard after certain timeout.
This is configurable. There is a mechanism by which sensitive data can be marked as not being something to save in klipper which is used by keepassxc and others. This is done by adding an additional mimetype tag when the selection is saved to the clipboard. Anything else is out of scope.
(In reply to David Edmundson from comment #1) > This is configurable. I opened Klipper config dialog and couldn't find any option to do it, where can I find it ? What I want is to avoid Klipper from saving some sensitive info copied from an application (based on JavaFX) which needs heavy copy/paste actions to work.
"save clipboard contents on exit" If that doesn't work, please do let me know.
(In reply to David Edmundson from comment #3) > "save clipboard contents on exit" > > If that doesn't work, please do let me know. That option just clears the whole Klipper data after logging out. What I meant is if there's any way to exclude copied texts within a specific app from being saved or shown in Klipper like how KeePassXC does it ?
Only through the mechanism keepassxc uses. Klipper has no other way to determine the source of clipboard data.
(In reply to David Edmundson from comment #5) > Only through the mechanism keepassxc uses. > Klipper has no other way to determine the source of clipboard data. It's technically possible, on Mate I did it with CopyQ to avoid saving my copied data from specific apps like Writer, Eclipse... The problem with Plasma desktop is that Klipper cannot be disabled because it causes a loss of data when the origin app from which the data is copied is closed.
You don't have to totally disable Klipper; just make it behave like the crude clipboards of other platforms by reducing the history size to 1. Then the password in the history will get cleared when another thing is copied. I agree with David that you should tell the apps in question to mark sensitive clipboard data as such so everything works automatically.
> you should tell the apps in question to mark > sensitive clipboard data as such so everything works automatically. It would be cool to have and option to exclude copied text from specific apps.
It wouldn't help for everything though. For example I manage my passwords with a browser-addon-based system, so telling Klipper to exclude everything from Firefox would make no sense. Ultimately the solution is for apps to behave correctly, not for us to let the user work around broken apps in a zillion different ways. :)