Skip to content

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

Open
juergenhoetzel wants to merge 1 commit intoifosch:masterfrom
juergenhoetzel:silent-mode
Open

Run keepassxc-cli in silent mode (prevent password prompt) / Windows compatibility#18
juergenhoetzel wants to merge 1 commit intoifosch:masterfrom
juergenhoetzel:silent-mode

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