SUPERCILEX / gnome-clipboard-history

Gnome Clipboard History is a clipboard manager Gnome extension that saves what you've copied into an easily accessible, searchable history panel.
https://extensions.gnome.org/extension/4839/clipboard-history/
MIT License
470 stars 46 forks source link

Add a black list for certain apps #190

Open KelvinNovais opened 3 hours ago

KelvinNovais commented 3 hours ago

Problem description

While copying a password from an app (e.g Secrets or KeePassXC), it keeps on history. Of course I can use private mode, but it would be great to add those apps to a black list, so this action get automated.

Potential solutions/workarounds

Ignore apps on black list, while keeping other apps working normally.

Additional context

I use Secrets, and even if "Try to avoid copying passwords (known potentially buggy)" enabled on the extension, and "Clear Clipboard" enabled on Secrets, the password is kept on history.

Thank you so much for the extension.

SUPERCILEX commented 3 hours ago

I'm not sure an API exists to get the name of the app that owns the clipboard. If it does, I'd be happy to accept a PR for this.

KelvinNovais commented 2 hours ago

See this.

The referred extension requires the user to (manually) install some other dependencies on the system, and I don't know if they are essential for this feature.

I'm not used to write extensions, so if these dependencies are required, or it's not possible to track the application in another way, feel free to close the issue.

SUPERCILEX commented 2 hours ago

I'd be surprised if you needed any extra dependencies. Also that code looks good, but I would just hard code keypass and any other password managers for now.

KelvinNovais commented 1 hour ago

but I would just hard code keypass and any other password managers for now

That's certainly great