Bug 403752

Summary: Support XDG base directory specification when using libnss
Product: [Applications] kmail2 Reporter: Shmerl <shtetldik>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: montel
Priority: NOR    
Version: 5.9.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Shmerl 2019-01-30 00:45:04 UTC
Currently, Kmail while using libnss creates $HOME/.pki/nssdb directory. Libnss now supports XDG base directory spec. Clients which use it though need to explicitly enable that. 

See https://bugzilla.mozilla.org/show_bug.cgi?id=818686#c15

Please do it in Kmail to avoid cluttering $HOME.
Comment 1 Laurent Montel 2019-01-30 07:13:52 UTC
Sorry it's not a kmail problem...
We don't generate it.

Perhaps gpgme...
Comment 2 Shmerl 2019-01-30 07:30:22 UTC
I'll try to narrow it down to some dependency, but it's certainly being created when Kmail starts.
Comment 3 Shmerl 2019-01-30 07:43:57 UTC
lsof also shows, that kmail holds these files in $HOME/.pki/nssdb open while running: cert9.db key4.db
Comment 4 Laurent Montel 2019-01-30 08:23:50 UTC
For sure we don't create it in kmail.
But perhaps in its dependancies.
Comment 5 Shmerl 2023-06-14 05:24:45 UTC
I think I found the culprit:

apt depends kmail | rg libqt5webengine
  Depends: libqt5webenginecore5 (>= 5.15.2~)
  
apt depends libqt5webenginecore5 | rg libnss
  Depends: libnss3 (>= 2:3.22)

I can look into Qt Web Engine and how it uses libnss and file a bug there.
Comment 6 Shmerl 2023-06-14 05:34:24 UTC
Hmm, since Qt Web Engine seems to be using Chromium, this might be the upstream bug:

https://bugs.chromium.org/p/chromium/issues/detail?id=1038587