1

(53 replies, posted in Bugs & problems)

Thanks, the_glu. It's working 100% now on linux with FF3. Thanks!

2

(10 replies, posted in New versions)

OK, 0.5.0 is working for me.

flu, did anything change in this version with regards to the code that finds the executable? I think this is a regression.

3

(10 replies, posted in New versions)

Oh no, glu...
my old problem is back. In the 0.5.0 release FireGPG was finally able to detect where my GPG binary was (running on Gentoo linux). Just updated to 0.5.1 this morning and getting the same error message as before:

"Error: FireGPG is unable to access the gpg executable. Make sure GPG is installed or specify the path in the preferences."

I want to downgrade until the problem is fixed again. Can you point me to the 0.5.0.xpi ?

Oh, and the only other thing I did this morning was install PeraPera-kun Japanese translation addon for Firefox. I had the same plugin installed a while ago when FireGPG was acting up. Could someone test that the addons aren't messing with each other?

Thanks....

4

(53 replies, posted in Bugs & problems)

Ok, then I will just be patient.
Thanks, the_glu.

5

(53 replies, posted in Bugs & problems)

I had an idea and I can't remember if I mentioned this before in an earlier post... but why don't we look at the code that they use in enigmail?? Enigmail is an open source and cross-platform thunderbird extension to handle GPG, so I'm sure they have exactly the code that we need (a function for determining where the gpg executable is). Wouldn't it be just a copy and paste? Or at least something to compare to...

If you don't have time, I'll check it out on Sunday when I have some free time and see if I can port it over to FireGPG, but I suck at coding and it'll take some time, lol...

6

(53 replies, posted in Bugs & problems)

 # gpg --version
gpg (GnuPG) 2.0.9
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
Used libraries: gcrypt(1.4.0)

It is strange, huh? OK, I'll wait for the next release and try again smile

7

(53 replies, posted in Bugs & problems)

Well, it's been almost a year since I first tried to use fireGPG... it still isn't working for me. Is there anyway I could get some help on this, because I have looked at the code above but can't figure it out.

I am on gentoo, linux. I have gpg2 installed, gpg is in PATH, and /usr/bin/gpg is a symlink to gpg2.

$ which gpg
/usr/bin/gpg
$ ls -l /usr/bin/gpg
lrwxrwxrwx 1 root root 4 Apr 29 01:18 /usr/bin/gpg -> gpg2

The code listed in the last post apparently looks for gpg_path being set in fireGPG config, which I have tried to set, but it's apparently ignored. Failing that it looks for "gpg" in path (if I read the code correctly?) and I clearly have gpg in my path.

So I can't figure out what the problem is here. I wonder if having gpg2 installed is the problem? Does FireGPG support gpg2?

That's for anybody who can give me a hint... and I would be happy to provide any more info about my setup that's needed.
-Doug

8

(53 replies, posted in Bugs & problems)

Had a bit of free time so kept investigating this problem. I don't really understand code but was just following leads where I saw it... maybe this can help someone here at the forums who knows this code:

I trace the error message to the English locale file as: selfTestFailled=

selfTest function found in file cgpg.js line 549

which called subclass initGPGACCESS at line 662 same file

points to function tryToFoundTheRightCommand at line 667 same file

tryToFoundTheRightCommand() function found in cgpgaccess.js line 689

Here's the function that I think is causing the error to return on my system. It's a mess... specifically I can't understand HOW it's deciding if I have gpg or not... One thing I thought it maybe it's looking for gpg_path in my env path... but my distro (gentoo) doesn't have it there. Does anyways else have gpg in their path? (type env at the command line at look for anything gpg related).

Annnnny other leads muchly apprecated...

tryToFoundTheRightCommand: function () {
        if(isUnix()) {
            //Year, on linux no test, because it's a good Os.
            //We only look if the user wants to force the path.
            var prefs = Components.classes["@mozilla.org/preferences-service;1"].
                                   getService(Components.interfaces.nsIPrefService);
            prefs = prefs.getBranch("extensions.firegpg.");

            try {
                var force = prefs.getBoolPref("specify_gpg_path");
            }
            catch (e) {
                var force = false;
            }

            if (force == true)
                this.GpgCommand = prefs.getCharPref("gpg_path");
            else {
                prefs.setCharPref("gpg_path","gpg");
                this.GpgCommand = "gpg";
            tryToFoundTheRightCommand}
        }
        else {
            //Two choises : 1) The user want to set the path himself, so we use this.
            var prefs = Components.classes["@mozilla.org/preferences-service;1"].
                                   getService(Components.interfaces.nsIPrefService);
            prefs = prefs.getBranch("extensions.firegpg.");

            try {
                var force = prefs.getBoolPref("specify_gpg_path");
            }
            catch (e) {
                var force = false;
            }

            if (force == true)
                this.GpgCommand = prefs.getCharPref("gpg_path");
            else {

                //Or we will try to found a valid path.

                //1) If there are allready a path set, he can be valid.
                var gpg_path_in_options = prefs.getCharPref("gpg_path","");

                if (gpg_path_in_options != "") {
                    this.GpgCommand = gpg_path_in_options;
                    if (this.selfTest() == true)
                        return; //It's work, yourou.
                }

                //2) We have to guess some path to see if it's work...

                //TODO : Yes, it's horrible this copy/paste code...


                //GNU ?
                var testingcommand = "C:\\Program Files\\GNU\\GnuPG\\gpg.exe";
                this.GpgCommand = testingcommand;
                if (this.selfTest() == true)
                {
                    //Don't forget to save the information for the nextime !
                    prefs.setCharPref("gpg_path",testingcommand);
                    return; //It's work, We're the best.
                }

                //Windows Privacy Tools ?
                var testingcommand = "C:\\Program Files\\Windows Privacy Tools\\GnuPG\\gpg.exe";
                this.GpgCommand = testingcommand;
                if (this.selfTest() == true)
                {
                    prefs.setCharPref("gpg_path",testingcommand);
                    //Don't forget to save the information for the nextime !
                    return; //It's work, mwahaha.
                }

                //Maybe in the path ?
                var testingcommand = "gpg.exe";
                this.GpgCommand = testingcommand;
                if (this.selfTest() == true)
                {
                    //Don't forget to save the information for the nextime !
                    prefs.setCharPref("gpg_path",testingcommand);
                    return; //It's work, hehehe.
                }

            }
        }
    }
};

9

(53 replies, posted in Bugs & problems)

Another thing I thought... FireGPG is complaining of an access problem... might it be the permissions?

$ ls -l /usr/bin/gpg
-rwxr-xr-x 1 root root 772112 Jun  6 00:38 /usr/bin/gpg

Are you returning similar?

10

(53 replies, posted in Bugs & problems)

Hey I was wondering if there was any word yet on this error that a few of us are getting. I'd really love to get this fixed... I am hopeful every time I update FireGPG but nothing has worked so far. I, for one, have copied my .gnupg directory from old backups so that I could keep the same keychain, etc... did the other people with the same problem do that? I also have gpg and gpg2 installed like rouben and get almost identical output for all the commands he ran. Maybe I'm missing something in my gpg directory?:

$ ls .gnupg
private-keys-v1.d  pubring.gpg   random_seed  secring.gpg
gpg.conf     pubkey.asc         pubring.gpg~  revkey.asc   trustdb.gpg

And my gpg.conf file... just in case (with some comments cut out for size):

$ cat ~/.gnupg/gpg.conf

# Uncomment the following option to get rid of the copyright notice

no-greeting

# If you have more than 1 secret key in your keyring, you may want to
# uncomment the following option and set your preferred keyid.

#default-key 621CC013

#default-recipient some-user-id
#default-recipient-self

#encrypt-to some-key-id



#no-force-v3-sigs

#no-escape-from-lines

# If you do not use the Latin-1 (ISO-8859-1) charset, you should tell
# GnuPG which is the native character set.  Please check the man page
# for supported character sets.  This character set is only used for
# metadata and not for the actual message which does not undergo any
# translation.  Note that future version of GnuPG will change to UTF-8
# as default character set.  In most cases this option is not required
# GnuPG is able to figure out the correct charset and use that.

charset utf-8

#group mynames = paige 0x12345678 joe patti

#lock-once

keyserver hkp://subkeys.pgp.net
#keyserver mailto:pgp-public-keys@keys.nl.pgp.net
#keyserver ldap://keyserver.pgp.com

keyserver-options auto-key-retrieve

# Display photo user IDs in key listings

# list-options show-photos

# Display photo user IDs when a signature from a key with a photo is
# verified

# verify-options show-photos


# Passphrase agent
#
# We support the old experimental passphrase agent protocol as well as
# the new Assuan based one (currently available in the "newpg" package
# at ftp.gnupg.org/gcrypt/alpha/aegypten/).  To make use of the agent,
# you have to run an agent as daemon and use the option
#
use-agent

# Try CERT, then PKA, then LDAP, then hkp://subkeys.net:
#auto-key-locate cert pka ldap hkp://subkeys.pgp.net

--

Anything I should try? As always, any help appreciated, and always willing to help.

11

(53 replies, posted in Bugs & problems)

Didn't do any good for me, I had already played around in about:config, and that "specify_gpg_path" key is the same as checking "Manually specificy gpg path" in the options box, which I had already done.

I'm pretty sure this is a bug of some sort.

Anyways, thanks for your reply, I appreciate any leads.

12

(53 replies, posted in Bugs & problems)

Hi, I'm having a similar problem. I use linux, gpg 1.4.7, firefox 2.0.0.4, and the lately svn build of fireGPG.

typing "gpg" from the command line brings me to the program, and "which gpg" produces "/usr/bin/gpg"... default placement. I have used both the download version and SVN version of fireGPG, but they all give me the same message:

Error: FireGPG cannot access GPG. Please check that GPG is installed and that the path specified in the options is correct.

After that comes up I can enter options and try and change the default location, but nothing produces results.

What exactly is it looking for that it can't find? Any leads would be greatly appreciated.