John A. Wallace wrote: > >> John A. Wallace wrote: >>> When using Enigmail In Windows OS, if Iwant tomake a reference to a >>> folder by using a relative path such as“.\folder1\folder2”, instead >> of >>> an absolute path starting at the root of the drive,in the OpenPGP >>> Preferences > Advanced>Additional parameters for GnuPG, where exactly >>> would that Advanced>initial directory“.\”be referring to? I mean, is it >>> the folder where“thunderbird.exe”starts up, or the thunderbird >>> profile,or“gpg.exe”,or where exactly? >> >> There is no current directory of Enigmail outside of what is defined for >> an extension. >> <snip>
> Therefore, there are numerous occasions in a portable mode situation where > I need to define "--homedir" in order to have access to the keyring, which > I have placed on the device. The keyring will always be in the same > relative place in relation to the Thunderbird program. Gpg is also > installed locally, that is, on the device itself, which is basically self > contained with the programs needed to run in the machine's Windows OS. > Similarly, I can start up the portable TB program with a portable Windows > command shell so that it looks for the profile in the same relative place > on the device (using a command "thunderbird.exe -p .\data\profile") and so > that I can define some other environment variables to have constant paths > defined relative to the installation of the command shell program. However, > so that I end up with the gpg homedir in the folder where I have the keys > in a file on this device and accessible to Enigmail, I am right now of the > opinion that I would need to define it with the option "--homedir" in the > Advanced parameters section of Enigmail's configuration settings. I say it > like this because this option is the final one and the one that would take > precedence over any others in terms of the way that gpg determines which > homedir is to be used for the keyrings. It is, in other words, more secure > than leaving it to chance that the OS has a predefined registry setting or > environment variable for GNUPGHOME. Is that not so? Set GNUPGHOME yourself prior to starting Thunderbird, this overrides any system definition. See below for using values relative to the command shell script. >> One last thought, what is it you wish to accomplish and why? When one >> requires configuration that no one else has mentioned in a decade, it >> leads me to think the use case is what needs to be examined. > > See above. Stating the what and why often leads to a much more concise answer. In your bat file for starting Portable Thunderbird, include a line near the top similar to SET GNUPGHOME=%~d0\GnuPG This will expand to <drive letter>:\GnuPG If your script for starting Portable Thunderbird is <drive>:\PortableApps\Thunderbird.bat, then %~dp0 will expand to <drive>:\PortableApps, i.e., the _D_rive and the _P_ath of the called command script. --homedir can be useful when one is doing things with the gpg command line, but it's not a very good solution in scripts, IMO -John http://stackoverflow.com/questions/5034076/what-does-dp0-mean-and-how-does-it-work -- John P. Clizbe Inet: John (a) Gingerbear DAWT net SKS/Enigmail/PGP-EKP or: John ( @ ) Enigmail DAWT net FSF Assoc #995 / FSFE Fellow #1797 hkp://keyserver.gingerbear.net or mailto:[email protected]?subject=HELP Q:"Just how do the residents of Haiku, Hawai'i hold conversations?" A:"An odd melody / island voices on the winds / surplus of vowels"
signature.asc
Description: OpenPGP digital signature
_______________________________________________ enigmail-users mailing list [email protected] https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net
