Bug 505333

Summary: kwatchgnupg doesn't remove log socket from gpg.conf when exiting
Product: [Applications] kleopatra Reporter: Marco <mm>
Component: generalAssignee: Ingo Klöcker <kloecker>
Status: REPORTED ---    
Severity: minor CC: aheinecke, mutz, pim-bugs-null
Priority: NOR    
Version First Reported In: 4.0.0.241203   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marco 2025-06-08 08:19:20 UTC
SUMMARY

Kwatchgnupg adds 2 lines to ~/.gnupg/gpg.conf when starting up:

debug-level basic
log-file socket:///home/m/.gnupg/log-socket

It doesn't remove them when exiting.
This results in error messages by gpg if the socket doesn't exist (after the exist of Kleopatra/kwatchgpg).

OBSERVED RESULT

m@ryz:~$ gpg --decrypt
can't connect to 'socket:///home/m/.gnupg/log-socket': Verbindungsaufbau abgelehnt




EXPECTED RESULT

Kleopatra/kwatchgnupg should remove those lines after exiting if it initially added them.

SOFTWARE/OS VERSIONS

Kleopatra: 4.0.0.241203 (24.12.3)
KDE Frameworks: 6.13.0
Qt: 6.8.2 wird verwendet und gebaut wurde mit 6.8.2
Debian GNU/Linux 13 (trixie) (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.30-amd64