Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juergenhoetzel
Copy link
Contributor

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

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 ifosch#10
@juergenhoetzel juergenhoetzel changed the title Run keepassxc-cli in silent mode (prevent password prompt) / Fix Windows issues Run keepassxc-cli in silent mode (prevent password prompt) / Windows compatibility Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keepass-mode in windows 10 and native emacs
2 participants