Comments (14)
Can confirm, that works perfectly. Thanks for the quick fix.
from git-credential-keepassxc.
Could you please share the actual full path of your KPXC pipe? I seldom use Windows but IIRC the last time I tested it out and this path worked just alright.
from git-credential-keepassxc.
It's one of those two, no idea which one:
\\.\pipe\keepassxc-BENDEM.socket
\\.\pipe\org.keepassxc.KeePassXC.BrowserServer
from git-credential-keepassxc.
Ah, I get it.
It's the second one. But apparently under Windows since KPXC 2.6.0, not only has the name of the pipe been changed, but also the path. It used to be the one in the log that's relative to user's FOLDERID_LocalAppData
. (I wonder what happens now when multiple users share the same machine though.)
It should be a minor fix but I haven't got the time to do it atm. You can try --socket
for now.
from git-credential-keepassxc.
My guess is that \\.\pipe\
is somehow a user path, not sure exactly what it is hiding.
--socket
works for configure
, but get
shows the original error message (file not found) with no more information when passing -vvv
.
bendem> 'https://example.org' | git-credential-keepassxc.exe -vvv --socket '\\.\pipe\org.keepassxc.KeePassXC.BrowserServer' get
Jul 15 15:24:03.439 DEBG Subcommand: get
Jul 15 15:24:03.447 ERRO Le fichier spécifié est introuvable. (os error 2), Caused by: N/A, Message: Le fichier spécifié est introuvable. (os error 2)
[117.94 ms]
from git-credential-keepassxc.
Welp, guess we've got two bugs then lol. I'll see if I can have some time to figure it out tomorrow or the day after.
from git-credential-keepassxc.
No rush, thanks for taking the time to look into it!
from git-credential-keepassxc.
Actually I suspect that the get
problem is related to configuration file rather than socket/pipe (gosh I need to improve logging). The default configuration path should be {FOLDERID_RoamingAppData}\git-credential-keepassxc
under Windows. Can you confirm whether this file exists, and in case you are using something like Cygwin/MSYS/PowerShell/etc, can you also just try cmd instead?
Btw if configuration file path is indeed the reason you can manually specify the path using --config
.
from git-credential-keepassxc.
I'm testing each time with cmd, powershell and wsl's host mount. Have not tested with WSL as guest since rust is globally broken there.
I have nothing related to git-credential-keepassxc under %APPDATA%
.
from git-credential-keepassxc.
What about configuring with --config
from scratch then?
And FOLDERID_RoamingAppData
= %APPDATA%\Roaming
not %APPDATA%
from git-credential-keepassxc.
%APPDATA%
's value is %USERPROFILE%\AppData\Roaming
. Is the config format documented somewhere? What am I supposed to put in it?
from git-credential-keepassxc.
@bendem I meant starting from scratch and carrying those 2 arguments all way along.
# bash syntax here, not sure about CMD/PowerShell, and I don't think WSL would work at all
$ git-credential-keepassxc -vvv --config /path/to/wherever/git-credential-keepassxc --socket '\\.\pipe\org.keepassxc.KeePassXC.BrowserServer' configure
$ printf 'url=https://example.com\n' | git-credential-keepassxc -vvv --config /path/to/wherever/git-credential-keepassxc --socket '\\.\pipe\org.keepassxc.KeePassXC.BrowserServer' get
from git-credential-keepassxc.
Ah, I see the problem, I had refused to create the git group it asked for, and it's apparently a hard error that happens before saving the config. Really sorry about that, config system is working fine, just the path of the pipe is causing problems.
from git-credential-keepassxc.
Thank you very much for all the feedback! Could you please try issue-13
branch out to see if the default named pipe path problem is solved or not? You can either just checkout the branch and then cargo build
or use cargo install --git https://github.com/Frederick888/git-credential-keepassxc.git --branch issue-13
.
from git-credential-keepassxc.
Related Issues (20)
- Prompt to use Yubikey? HOT 3
- `dyld: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib` on macbook M1 HOT 1
- to add some docs for `git-credential-keepassxc get` command for non git use cases
- Support for error codes
- Support for error codes HOT 2
- Existing credentials used/updated! HOT 9
- Offer credentials from `Git` group only (CLI flag & automatically)
- KeePassXC update 2.7.2/2.7.3 breaks connection to Unix socket HOT 1
- Exit code of `ERRO ... is not allowed to call git-credential-keepassxc` is `0` HOT 2
- Notifications configurable via config file HOT 2
- Allow `get` to optionally receive one argument, and print only that field HOT 2
- [AUR package] shell is not allowed to call git-credential-keepassxc HOT 7
- What is the expected behavior when computer has multiple YubiKeys? HOT 3
- Filter by username to return nothing when no match HOT 2
- Readme unclear HOT 3
- Trouble Retrieving Password From Shell HOT 1
- Add support for git 2.41 HOT 2
- zsh is not allowed to call git-credential-keepassxc HOT 1
- Failed to locate socket, Caused by: N/A HOT 1
- Failed to connect to Unix socket HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-credential-keepassxc.