oae / gnome-shell-pano

Next-gen Clipboard Manager for Gnome Shell
https://extensions.gnome.org/extension/5278/pano/
GNU General Public License v2.0
1.04k stars 55 forks source link

Exclude password from being stored #121

Closed BarbzYHOOL closed 1 year ago

BarbzYHOOL commented 1 year ago

Is your feature request related to a problem? Please describe. When I use pass in my terminal, it copies the password to the clipboard which is not secure.

Describe the solution you'd like Exclude password from being stored, dunno how you could do that. For CopyQ, there is an extension to pass and I feel like going with that https://github.com/vy/pass-extension-copyq but i prefer Pano

Describe alternatives you've considered I tried to exclude my terminal name "Tilix", the name of the window as well, but it keeps storing it

Additional context

oae commented 1 year ago

This is currently not possible. Could you try adding the class name of the application to exclude apps? You can use xprop to get the class name. Other than this, there is no other way to exclude apps for now. You could try setting x-kde-passwordManagerHint mime-type to exclude from pano when copying.

BarbzYHOOL commented 1 year ago

? I don't use a KDE password manager, I use a terminal app called "pass", therefore the window is the terminal aka "Tilix" in my case

xprop returns: WM_CLASS(STRING) = "tilix", "Tilix"

but I already tried to put tilix with no success

Did I try it right?

oae commented 1 year ago

Can you try Tilix?

oae commented 1 year ago

? I don't use a KDE password manager, I use a terminal app called "pass"

I meant if you set the mime type for the clipboard to x-kde-passwordManagerHint, pano will not track it. You can try it with the following example

echo "secret" | xclip -sel clip -t "x-kde-passwordManagerHint"

I don't know how pass works but if you can get output and copy it like the above example, pano will not save it. In this way, you don't need to exclude the tilix.

BarbzYHOOL commented 1 year ago

Can you try Tilix?

This works but it excludes any copying I make inside Tilix (but it still copies, which is cool)

? I don't use a KDE password manager, I use a terminal app called "pass"

I meant if you set the mime type for the clipboard to x-kde-passwordManagerHint, pano will not track it. You can try it with the following example

echo "secret" | xclip -sel clip -t "x-kde-passwordManagerHint"

I don't know how pass works but if you can get output and copy it like the above example, pano will not save it. In this way, you don't need to exclude the tilix.

I don't understand, set the mime type for the clipboard??? what does it even mean? I don't understand the example but that sounds interesting, if we figure it out it could be added to the description/FAQ of PANO

@oae

BarbzYHOOL commented 1 year ago

Since I used your command echo "secret" | xclip -sel clip -t "x-kde-passwordManagerHint" now pano no longers works, it's totally empty :(

BarbzYHOOL commented 1 year ago

@oae pinging you, just in case :P