BlackReloaded/wsl2-ssh-pageant

Add support for GPG installed by scoop

mirror-kt opened this issue · 4 comments

Scoop is a command line installation manager for Windows.

If I install GPG by scoop, the home directory of GPG will be placed in %USERPROFILE%\scoop\apps\GnuPG\current\home instead of %APPDATA%\gnupg.
However, in this project, the GPG home is hard-coded (FYI: here) and cannot support the GPG installed in scoop.

We would like to manage the version of GPG using scoop, can you support it?

Have a look into #12 where some aspects of this where already discussed. I proposed a solution by using a flag to point to the right path.

Would an flag like:

(setsid nohup socat UNIX-LISTEN:"$GPG_AGENT_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin --gpg S.gpg-agent --gpgwinpath XYZ" >/dev/null 2>&1 &)

help?

I just released v1.3.0 which includes an setting for this: --gpgConfigBasepath.

Oh, I see, thank you!

Did it work?