Bug 76388

Summary: not possible to store keys/config in a different location
Product: [Applications] kgpg Reporter: Rupert Herbst <herbstr>
Component: generalAssignee: bj
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rupert Herbst 2004-02-29 06:57:01 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    SuSE RPMs
OS:          Linux

Hi there,

I wanted to store my key rings on to a memory-card instead of having them locally on the disk. I changed the default path for the GnuPg configuration file to the new location, but it doesn't seem to work. It still saves the key rings & config to ~/xxxx/.gnupg

I then tried changing the GNUPGHOME environment variable, but that didn't helped either. However, it does work with gpg invoked from the commmand line, but still no luck with KGpg.

in kgpgrc
---------

[GPG Settings]
gpg_config_path=/media/sdc2/gnupgp/gpg.conf
Comment 1 bj 2004-03-01 02:52:05 UTC
Hello !

> in kgpgrc
> ---------
>
> [GPG Settings]
> gpg_config_path=/media/sdc2/gnupgp/gpg.conf

If you set GNUPGHOME, it should work (There may be some problems with the 
group names, but it shouldn't harm).

Try to put: 
export GNUPGHOME=/media/sdc2/gnupgp/
in $home/.xsession
and restart KDE.

or you could also try to close KGpg, open a Konsole, type:
export GNUPGHOME=/media/sdc2/gnupgp/
than, start kgpg from that Konsole.

It should work than.
I will try to add an option to configure it easily from the settings dialog.

regards
Comment 2 bj 2004-03-02 03:16:57 UTC
CVS commit by mardelle: 

added option to easily change GNUPGHOME from the settings dialog, for example if you have your keyring on an usb key...

CCMAIL: 76388-done@bugs.kde.org


  M +136 -17   conf_gpg.ui   1.12
  M +5 -1      kgpg.cpp   1.132
  M +72 -12    kgpgoptions.cpp   1.51
  M +3 -1      kgpgoptions.h   1.20
  M +1 -0      listkeys.cpp   1.180



Comment 3 Rupert Herbst 2004-03-04 02:10:14 UTC
That did the trick....Thanks.

Rupert

bj@altern.org wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>       
> http://bugs.kde.org/show_bug.cgi?id=76388      
> 
> 
> 
> 
> ------- Additional Comments From bj altern org  2004-03-01 02:52 -------
> Hello !
> 
> 
>>in kgpgrc
>>---------
>>
>>[GPG Settings]
>>gpg_config_path=/media/sdc2/gnupgp/gpg.conf
> 
> 
> If you set GNUPGHOME, it should work (There may be some problems with the 
> group names, but it shouldn't harm).
> 
> Try to put: 
> export GNUPGHOME=/media/sdc2/gnupgp/
> in $home/.xsession
> and restart KDE.
> 
> or you could also try to close KGpg, open a Konsole, type:
> export GNUPGHOME=/media/sdc2/gnupgp/
> than, start kgpg from that Konsole.
> 
> It should work than.
> I will try to add an option to configure it easily from the settings dialog.
> 
> regards
>