Topic: FireGPG with gpg2go
Im trying to run portable firefox, along with the installed firegpg extension all from a USB stick.
#1 - GPG executable -- I need to add this onto by USB stick so firegpg can call this program. Couple of issues with this. I dont know what the driver letter of the USB stick will be -- when specifying the path to the gpg executable, can I put something in the path like %~d0.
Im not sure this will work.
In order to use gpg from a usb stick I think I need to do the following (if Im going to use gpg2go which supplies gpg.exe as the executable -- gpg.exe for windows expects an enviroment variable GNUPGHOME to be set prior to use).
1. Discover the driver letter of the USB Stick
2. SET the GNUPGHOME environment path
3. Pass the arguments of the letter composed to the gpg executable and return the encrypted/signed output.
So basically when calling gpg from within firefox how would this work??? Can firegpg discover what drive letter it is running from on windows??
Here is kind of what I have come up with so far
//GPG_SAMPLE.bat
@echo off
SET DRIVE=%~d0
SET GNUPGHOME=%DRIVE%/gpg/home
SET PATH=%DRIVE%/gpg;%PATH%
gpg.exe %1
I would call GPG_SAMPLE.bat with the contents of the letter???
Can anyone understand what I want to do??
Can you help me?