Bug 403752 - Support XDG base directory specification when using libnss
Summary: Support XDG base directory specification when using libnss
Status: RESOLVED UPSTREAM
Alias: None
Product: kmail2
Classification: Applications
Component: crypto (show other bugs)
Version: 5.9.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-30 00:45 UTC by Shmerl
Modified: 2023-06-14 05:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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