[pass] xdotool dmenu

Christoph Egger christoph at christoph-egger.org
Fri Jun 27 23:41:50 CEST 2014


Brian Mattern <brian.mattern at gmail.com> writes:
> Is the echo necessary?

Well, dmenu reads from stdin so you need to echo into it (or do some
`ls | sed` which forks) [0]. For xdotool you could get around by doing a
`xdotool type "$(pass $passentry)"` but then everyone able to run `ps`
or anything similar on your system can read xdotool's comandline
parameters so the `echo -n "type " ; pass` is the "safe" solution.


[0] http://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu
    uses `printf` but does that part basically the same way
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140627/7103d96d/attachment.asc>

More information about the Password-Store mailing list