Last Comment Bug 818686 - Support XDG basedir specification
: Support XDG basedir specification
Status: NEW
:
Product: NSS
Classification: Components
Component: Libraries (show other bugs)
: 4.0
: All All
: -- normal with 8 votes (vote)
: ---
Assigned To: nobody
:
:
Mentors:
Depends on: 259356
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 14:10 PST by Eric Heintzmann
Modified: 2015-08-30 18:34 PDT (History)
10 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Eric Heintzmann 2012-12-05 14:10:41 PST
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0
Build ID: 20121129151900
Comment 1 Andre Klapper 2012-12-07 08:42:05 PST
Where in the codebase would this be applied to?
Comment 2 Eric Heintzmann 2012-12-07 10:32:44 PST
I think these files should be moved:

$HOME/.pki/nssdb/pkcs11.txt --> $XDG_CONFIG_HOME/pki/nssdb/pkcs11.txt
$HOME/.pki/nssdb/cert9.db   --> $XDG_DATA_HOME/pki/nssdb/cert9.db
$HOME/.pki/nssdb/key4.db    --> $XDG_DATA_HOME/pki/nssdb/key4.db

http://ploum.net/post/207-modify-your-application-to-use-xdg-folders
https://live.gnome.org/GnomeGoals/XDGConfigFolders
http://standards.freedesktop.org/basedir-spec/latest/
Comment 3 John Drinkwater (:beta) 2014-11-15 07:02:25 PST
(In reply to Andre Klapper from comment #1)
> Where in the codebase would this be applied to?

From a quick non-comprehensive look, security/nss/lib/sysinit/nsssysinit.c getUserDB()

Note You need to log in before you can comment on or make changes to this bug.