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
Windows compatibility #1
Comments
Might be useful: https://crates.io/crates/directories-next |
@riedel Could you please give I cross-compiled to $ git-credential-keepassxc configure
$ git config --global credential.helper keepassxc
$ printf "url=https://example.com\nusername=foo\n" | git credential fill In CMD/PowerShell the coloured output also looked ok but I don't know how to do I/O redirection in CMD/PowerShell so I didn't test credential retrieval. And if everything on |
Cool it works on 1-windows-support !!!! Thanks! However, I had a problem with multiple accounts. I guess I can open a ticket. I managed to to compile it via with msvc too. |
@riedel Thanks for testing msvc.
Because currently usernames are not used when retrieving credentials I guess. Anyway, please open another ticket for this and some debug ( |
Tasks to tackle:
git-credential-keepassxc/src/utils.rs
Lines 29 to 40 in e77960b
XDG probably doesn't work under Win. KeePassXC uses named pipes under Win and the path is
%TMP%\kpxc_server
(e.g.C:\Users\Administrator\AppData\Local\Temp\kpxc_server
). It listens on another one calledkeepassxc-Administrator.socket
at the same time, not sure whether it's for browser integration as well or not.git-credential-keepassxc/src/utils.rs
Lines 63 to 72 in e77960b
Two most popular implementations are:
https://crates.io/crates/named_pipe
https://crates.io/crates/mio-named-pipes
We should probably use the first one as it doesn't seem to require a runtime. It's a synchronous CLI tool at the end of the day and we don't need asynchronous stuff.
git-credential-keepassxc/src/utils.rs
Lines 74 to 91 in e77960b
exchange_message()
needs to be updated as well.git-credential-keepassxc/src/main.rs
Line 465 in e77960b
Does TermDecorator work in cmd/PowerShell? Do we need to switch to PlainSyncDecorator under Win?
The text was updated successfully, but these errors were encountered: