-
Notifications
You must be signed in to change notification settings - Fork 472
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
keepassxc "open" mode not working in non-english environment #3468
Comments
What is the KeePassXC template function that you are using and what are its exact arguments? |
Ahh...sorry, you are right, i missed that part.
This works if i not use the
Maybe this is an race condition as the output seems to indicate that the tempDir is removed before the file read? BTW: i don't want to overload this issue but maybe it could be an better idea to use MemfdCreate function (at least at linux) for not having accessible files linger, but as i'm not an developer i did not know which dependencies this have. |
Thank you for the follow-up. It turns out that there were several problems, all of which should be fixed by #3471. Firstly, the prompt localization should be fixed by chezmoi now setting the Secondly, in:
The first argument ( Thirdly, chezmoi was using the attachment name (the second argument, i.e. Finally, to respond to a couple of your questions:
It's not evident from the logs, but there is no race condition here. The
This is very interesting, thank you. I did not know about MemfdCreate (which calls the |
Hey @twpayne, thanks for your detailed explanation (and thanks for the link to the language stuff rant! 🤣). Regarding the memfd, i couldn't find any indication quickly whether a similar function also exists in OSX or windows, so i would guess this is sadly only useful on linux. Maybe this blog post is worth a reading for the file path problem. |
@twpayne unfortunately i have to come back to this issue as the fix from #3471 has side effects in open mode.
First i thought it is a kind of whitespace stuff...but then my keychain was not happy about the files anymore:
So i take a closer look and the generated files do have some control sequences (seems to be ending of Bracketed Paste Mode) in front of the line:
The used template for this is:
The |
Describe the bug
After releasing v2.44.0 i try to use the new open mode of keepasscx because i plan to use a lot of secrets and opening/closing the database for every call isn't optimal and keep the database open could maybe lead to an speed increase.
After setting the mode to open
chezmoi apply
hangs. The prozessierst shows the open command but no password prompt is shown.After quick check the code,
Enter password to unlock
is expected but as my system hasi got
Passwort zum Entsperren von
.So i can workaround this with
LANGUAGE=en chezmoi apply
but then i got errors for opening the temporary attachment fileI'm not sure if the follow up error is related but i have no idea how to debug this further.
To reproduce
Set keepasscx mode to open and run
LANGUAGE=de chezmoi apply
.Expected behavior
The template should render correctly.
The text was updated successfully, but these errors were encountered: