Commit graph

4 commits

Author SHA1 Message Date
appeasementPolitik
5ff7f70b64
otp: exit if pass or pass-otp are not installed (#1191) 2022-09-22 12:50:58 +00:00
appeasementPolitik
7871fd80b2
Make otp script more secure + other improvements (#1190)
Make a temporary directory in $XDG_RUNTIME_DIR instead of $PASSWORD_STORE_DIR. 

$XDG_RUNTIME_DIR defaults to /run/user/$uid/. This directory has the security advantage of only being readable and writable by the current user and being mounted in RAM, causing the screenshot to be fully wiped on shutdown and not needing shred, which doesn't work reliably on SSD's. 

Also quoted $dir, for the off chance someone has spaces in their $PASSWORD_STORE_DIR.

Removed the check for xclip and the $issuer and $name variables, as they are unused.

If you're wondering why echo is piped into dmenu, on my system dmenu hung when called without the pipe, causing the whole script to freeze.
2022-09-20 11:42:54 +00:00
krisdoodle45
ebcc52f1fb
otp script: Printf is not needed here (#1062) 2022-01-21 22:17:21 +00:00
Luke Smith
58e1952ce2
otp script 2021-12-21 13:03:43 -05:00