mcat95 / pass-extension

Gnome shell extension for the pass password manager
GNU General Public License v2.0
9 stars 7 forks source link

Type instead of copy #10

Open jplitza opened 7 years ago

jplitza commented 7 years ago

I'm used to the behavior of the dmenu script distributed with pass, which by default types the password instead of copying it to clipboard (using xdotool). I like that very much, because (combined with a hotkey, see #6) this is a very smooth experience to insert a password into any currently open dialog. Also, it doesn't suffer the possible information leak through the clipboard.

So I propose to have a type-in mode for this extension (or maybe switch it to type-in altogether).

FTR, this is the call to xdotool that the dmenu script uses:

xdotool - <<<"type --clearmodifiers -- $(pass show "$password" | head -n 1)"
mcat95 commented 7 years ago

This behavior would be very nice to have, and to me sounds like it should be configured by the user.

Does that command work with wayland or only x server?

jplitza commented 7 years ago

This very command probably only works with X server, I have no idea how something similar is possible on Wayland (never even installed that yet).

mcat95 commented 7 years ago

I checked on wayland, and as supected, didn't work. I've been reading about a replacement and found bad news, because it seems that wayland doesn't like a program giving input to another due to security issues. More research is needed, but, for the moment, I'll implement this only for X server