Hi all
I've been playing around with the thunderbird, enigmail and gnupg
portable setup as described on the thunderbird support page and have
found that the gpg keys are actually being stored in
%APPDATA%\gnupg rather than
..\CommonFiles\gpg\Data. Is there any way to change this?
Cheers
https://portableapps.com/node/11402
"Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis .." Friday Next -
"May The Schwartz be with You!" Yogurt the Yoda
Another interesting post on the subject is https://portableapps.com/node/11070#comment-63281
I think the idea is that GnuPG will get put in CommonFiles eventually, but we may need to wait for a new release.
(Yes I know JTH said "next week", but his weeks seem to be much longer than most of the rest of us.)
MC
Are you using GPG_for_Thunderbird_Portable_1.4.7.paf.exe or GnuPGPortable Dev Test 2.2?
I have included a modified ThunderbirdPortable.nsi to do exactly what you want. (well almost, the data is stored in /CommonFiles/Data/GnuPG so that it gets picked up by the current standard backup scheme) Are you comfortable building this yourself?
To group at large, should I include a compiled version of ThunderbirdPortable.exe with my modifications? I would put in the dev test startup screen to avoid confusion with the official app. Are there other considerations? Or should I just insist that until Mr. Haller and other senior devs approve and bless my changes (pretty pretty please?) that people must compile it themselves if they want it?
Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F
Sorry for the late reply. Was initially using the 1.4.7 version which is what was placing the keys in %APPDATA%. Have just been trying your Dev Test 2.2, but couldn't get thunderbird.nsi to compile, it threw up the following:
!include: could not find: "Registry.nsh"
Error in script "E:\PortableApps\ThunderbirdPortable2\Other\Source\ThunderbirdPortable.nsi" on line 69 -- aborting creation process
And I haven't been able to find Registry.nsh either. I've never had the pleasure of using NSIS before, but it seems straight forward enough to use and I've got a seperate fresh thunderbird installation that I'm testing everthing on.
That one is hard to find. I think it is at
Maybe we should just post the binary somewhere?
MC
Umm, it's right here http://nsis.sourceforge.net/Registry_plug-in
To get there without following the link
The developer formerly known as ZGitRDun8705
Well the compilation now gets further, but dies on line 232 with Invalid command: FindProcDLL::FindProc. Maybe a binary would be easier.
If you plan on doing more with NSIS you will need more of the plugins anyway. Here's a link to the list of .dll and .nsh files needed, it's not complete yet, but has most of them...unfortunately there aren't links to the files either, I plan on fixing that tonight though.
The developer formerly known as ZGitRDun8705
Got those and the thunderbird compiled properly. However, it was still reading the keys from %APPDATA% so in the end have given up on the commonfiles approach and just placed the gpg apps inside the thunderbird directory structure which is working fine now. I prefer the idea of a commonfiles approach to gpg and other such items, so if you've got any more ideas, I'll keep trying them in my test environment.
Wow, I applaud your tenacity! I apologize for not jumping in sooner, Had to drop everything and learn Perl for work. I'll try to come up with some debug steps tonight when I get home.
Thank you for not giving up!
Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F
Ok, first with ThunderbirdPortable.exe not running, open
in your favorite text editor. Search for the line
What is the path there?
Now run ThunderbirdPortable via the modified launcher and reopen the prefs.js file, now what is the path?
Verify that
\PortableApps\CommonFiles\GnuPG\App\gpg.exe
exists.
Verify that GPGPathDirectory and GPGHomeDirectory are not in the Thunderbirdportable.ini The ini file is given priority over any auto discovered path.
and of course the big doh that got me a few times. Make sure ThunderbirdPortable was not running when you compiled and that you launched with the new version after compile.
If you are not 100% confident with your compiled version I can send you a precompiled exe. Does anyone have an objection to me including the modified exe in the GnuPG Portable distribution?
Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F
Found it!
the GnuPG finder code first looks for gpg.exe in the order
commonfiles
thunderbirdportable
local
the first instance is what it returns as the path to gpg.exe
Then it searches for the keyrings in the order
commonfiles
thunderbirdportable
local
by testing for *.gpg! so if there is no keyring in /PortableApps/CommonFiles/Data/GnuPG then it just moves along to thunderbird and then local!
This could be solved a few ways
1. have a dummy keyring created in commonfiles at installation
2. have the test only look for the existence of the directory
either way I could set up to the GnuPG Portable installer copy exsiting Thunderbird Portable Keyrings (if found) over at install. Any reason not to?
Thank you so much for beta testing!
Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F
Ah ... If you search Google for "registry.nsh" you find a bunch of red herrings. I guess you need to know enough to search for "registry plug-in" or manually go through the plug-ins.
MC
If you use the official method of installing GnuPG into Thunderbird Portable, it will work just fine. GnuPG Portable is not supported by Thunderbird Portable at the moment.
Sometimes, the impossible can become possible, if you're awesome!
It is Un-Official and as such is supported by no one but myself, but I have posted GnuPG Portable Dev Test 2.3 which includes an updated GnuPGPortable.nsh and a compiled (with Dev Test splash) ThunderbirdPortable.exe
GnuPG Portable and the included ThunderbirdPortable.exe are UNOFFICIAL!
As such there is no guarantee, expressed or implied, that it will be compliant with future official versions. I will however do my best to support this and provide a smooth migration should the official release of GnuPG go a different direction.
Side note, GnuPG Portable Dev Test 2.2 had 70 downloads. For my first open source contribution I feel pretty special about that.
Key ID: 0xDAE3095F
Fingerprint: 5D98 65D2 1844 21A5 76C1 F0F6 4BE6 D689 DAE3 095F
I need to check this thread more often. Have installed 2.3 with a fresh install of TBP and Enigmail and can confirm it works straight off. Keys are stored in commonfiles\data\gnupg and a test email was signed without any problems. Thanks for your work!