One of the primary reasons for this ado-keyring project was to get authentication working from WSL. I found an easier solution today, which is to use the keyring installed in Windows instead.
I already have ~/.local/bin on my PATH from dev setup:
tdnf install -y python3 python3-pip
python3 -m pip install uv
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
uv tool install rust-just
python3 --version
uv --version
just --version
So I can jsut add a keyring that delegates to the Windows version:
WIN_USER=$(cmd.exe /c "echo %USERNAME%" 2>/dev/null | tr -d '\r')
cat > ~/.local/bin/keyring << EOF
#!/bin/bash
exec /mnt/c/Users/${WIN_USER}/.local/bin/keyring.exe "\$@"
EOF
chmod +x ~/.local/bin/keyring
This is the same thing that can be done with Git Credential Manager:
cat > ~/.local/bin/git-credential-manager << 'EOF'
#!/bin/bash
exec "/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe" "$@"
EOF
chmod +x ~/.local/bin/git-credential-manager
git config --global --replace-all credential.helper git-credential-manager
So this project may be less useful to me.
One of the primary reasons for this ado-keyring project was to get authentication working from WSL. I found an easier solution today, which is to use the keyring installed in Windows instead.
I already have
~/.local/binon myPATHfrom dev setup:So I can jsut add a
keyringthat delegates to the Windows version:This is the same thing that can be done with Git Credential Manager:
So this project may be less useful to me.