ifosch / keepass-mode

Emacs mode to open KeePass DB
https://github.com/ifosch/keepass-mode
GNU General Public License v3.0
40 stars 7 forks source link

Run keepassxc-cli in silent mode (prevent password prompt) / Windows compatibility #18

Open juergenhoetzel opened 2 years ago

juergenhoetzel commented 2 years ago

This also removes the dependency on Unix grep command.

Additional adjustments for Windows compatibility:

Use absolute file name for db in shell command: This prevents issues with tilde expansion on Windows (cmd.exe).

Don't quote password in echo command, because quotes are also echoed: https://stackoverflow.com/questions/804646/how-do-you-strip-quotes-out-of-an-echoed-string-in-a-windows-batch-file

Use double-quotes for group-path: Single quotes don't have a special meaning in cmd.exe.

Fixes #10