aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/otp%3fid%3d5ff7f70b64214beafc9146717d6a766d721b9786?id=7871fd80b29afa3fbab9bb...
diff options
context:
space:
mode:
authorappeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com>2022-09-20 11:42:54 +0000
committerGitHub <noreply@github.com>2022-09-20 11:42:54 +0000
commit7871fd80b29afa3fbab9bbecd6092b303b07c29f (patch)
tree5168b08ad477efebed7df3bbb5020ff75cf43140 /.local/bin/otp%3fid%3d5ff7f70b64214beafc9146717d6a766d721b9786?id=7871fd80b29afa3fbab9bbecd6092b303b07c29f
parentae0ad289a10e0cd911489ce08f8d0fed6332d348 (diff)
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.
Diffstat (limited to '.local/bin/otp%3fid%3d5ff7f70b64214beafc9146717d6a766d721b9786?id=7871fd80b29afa3fbab9bbecd6092b303b07c29f')
0 files changed, 0 insertions, 0 deletions