(Linux) Prevent passwords from being stored in clipboard manager history

For the web app, browser extension, and desktop app: If the detected operating system is Linux, when copying a password, the application should add an entry with MIME/media type x-kde-passwordManagerHint and value secret, like KeePassXC and Firefox’s password manager (bug, commit). Some clipboard managers (such as KDE’s Klipper [which introduced the scheme], CopyQ, and DankMaterialShell’s built-in clipboard manager) may ignore clipboard entries if they have an entry of this form.

The extension’s current method of clearing the clipboard contents seems insufficient to prevent passwords from being saved in clipboard managers, though I have only tested with DMS’s built-in clipboard manager.

@wren-falcon Welcome to the forum!

And I’m absolutely no Linux expert… so… I think this other feature request here…:

… at least has some overlap with yours… or do you even think, they are similar enough to be merged?

Years long linux Admin here. I use Parcellite to manage the clipboard on all our machines. There are times and situations when you DO want the clipboard info to be retained. For times such as you described above – > ONE simple click on the Parcellite icon in the task bar and the entire clipboard is thoroughly “cleared”. Easy to use and allows for control when the situation changes.

Clearing Clipboard History in Parcellite

What Happens When You Click “Clear”

When you use the “Clear” command in Parcellite, the following occurs:

  • Clipboard Contents: The current contents of the clipboard are cleared. This means any text or data you have copied will be removed from the clipboard.

  • History Entries: All history entries stored in Parcellite are deleted. This includes all previously copied items that were saved in the clipboard history.

Important Notes

  • Favorites and Snippets: If you have marked any items as favorites or saved snippets, these will typically remain intact. The “Clear” command is designed to remove only the general history and current clipboard contents.

  • Permanent Deletion: Once you clear the history, the deleted items cannot be recovered. Ensure you do not need any of the cleared items before executing this command.

Conclusion

Using the “Clear” command in Parcellite effectively removes all clipboard contents and history entries

ps – if you want to maintain something in clipboard history designate it as a favorite or snippet. Outside of this discussion just saying you can maintain when its wanted.

do you even think, they are similar enough to be merged?

Good call, I just stumbled on this too.

The scope of this feature increased from just being KDE-specific, I added a followup in the original thread about this but it may make sense to make a more general thread for this feature too (or rename it to be more general): Skip clipboard manager (KDE Klipper) on copy from Bitwarden app - #4 by shazow