Bug 345298 - KGpg complains when you haven't created the ~/.gnupg/ directory beforehand.
Summary: KGpg complains when you haven't created the ~/.gnupg/ directory beforehand.
Status: REPORTED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: 2.12.x
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 09:54 UTC by negora
Modified: 2021-10-12 21:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Window that comes up when the file ~/.gnupg/gpg.conf doesn't exist. (52.74 KB, image/png)
2015-03-18 09:54 UTC, negora
Details

Note You need to log in before you can comment on or make changes to this bug.
Description negora 2015-03-18 09:54:16 UTC
When you run KGpg, it checks for the existence of the file ~/.gnupg/gpg.conf and complains if it isn't there. If you have never used GPG, there is no .gnupg/ directory in your $HOME directory. So it's very probable that you'll suffer from this issue and have to mess with the command line before using KGpg. It may be negative for novice users.

I believe that KGpg should create this file by itself, just as "gpg" does when you use it for first time and the .gnupg/ directory doesn't exist.

Reproducible: Always

Steps to Reproduce:
1. Backup the ~/.gnupg/ directory (if exists) and delete the original one.
2. Open KGpg.

Actual Results:  
KGpg complains about the non-existence of the file ~/.gnupg/gpg.conf.

Expected Results:  
I think that KGpg should trigger the creation of the necessary structure automatically, just as "gpg" does.
Comment 1 negora 2015-03-18 09:54:59 UTC
Created attachment 91617 [details]
Window that comes up when the file ~/.gnupg/gpg.conf doesn't exist.
Comment 2 Rolf Eike Beer 2015-03-18 10:08:25 UTC
> When you run KGpg, it checks for the existence of the file 
> ~/.gnupg/gpg.conf
> and complains if it isn't there. If you have never used GPG, there is 
> no
> .gnupg/ directory in your $HOME directory. So it's very probable that 
> you'll
> suffer from this issue and have to mess with the command line before 
> using
> KGpg. It may be negative for novice users.

The problem does not exist if the user has never run KGpg before. In 
that case no kgpgrc file will exist and KGpg will run it's first start 
wizard. The problem only exists when KGpg _has_ been run before, and the 
configured directory has been (re)moved.

But indeed it should be more clever in that case, offering to run the 
wizard again or just quit to let the user fix it.
Comment 3 negora 2015-03-18 10:19:38 UTC
Oh, I see. I guess that's why it didn't complain in one of my tests. I deleted the file ~/.kde/share/config/kgpgrc and the directory ~/.gnupg/, and that time it worked as I expected.

I also agree that adding an option to re-run the wizard would be of much help.

Thank you!
Comment 4 Justin Zobel 2021-03-09 23:51:19 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.
Comment 5 Jack 2021-10-12 21:58:59 UTC
Yes, this still happens with kgpg-21.04.3 and gpg-2.2.32