Menu

homedir via environmental variable GNUPGHOME on Linux

b3t
2014-11-26
2014-12-05
  • b3t

    b3t - 2014-11-26

    Hi guys,
    I'm using the same profile of Thunderbird both Windows and Linux, and for this reason I don't want to change the homedir of gpg in the Enigmail Preferences.
    On Windows I don't have problems instead on Linux I set the environmental variable GNUPGHOME, and gpg works well in the command line, but Enigmail show me "Unverified signature".
    Do you have any suggestion?

    Thanks

     
  • Ludwig Hügelschäfer

    Can you see your keys in the Enigmail keymanager?

     
  • b3t

    b3t - 2014-11-29

    No, I can't see any keys in the Enigmail Key Management.

    Moreover, the Enigmail Console show the default path for Home, instead if I execute the same command in my terminal the Home is which one modified by me.

     

    Last edit: b3t 2014-12-02
  • Ludwig Hügelschäfer

    Ah, ok, so gnupg, accessed from within Enigmail does not see the GNUPGHOME environment variable.

    You should write a wrapper script to start Thunderbird, which explicitly sets and exports GNUPGHOME.

     
  • b3t

    b3t - 2014-12-04

    @Ludwig thank you for your support but I have no idea how to write that wrapper script, and it is quite strange that this only happen to me.

     

    Last edit: b3t 2014-12-04
  • Patrick Brunschwig

    I assume you changed GNUPGHOME in your ~/.bashrc, ~/.profile or similar. That's the wrong place because that's only interpreted when you start a command shell.

    Instead you should add the setting of this environment variable to your ~/.xsessionrc file (or ~/.xinitrc depending on how your system is set up). You'll have to log out and login again to have this file is applied.

     
  • b3t

    b3t - 2014-12-05

    @Patrick thank you very much!
    You're right, I changed GNUPGHOME in ~/.xinitrc and Enigmail works well.

     

Log in to post a comment.