Author Topic: To .config or not .config  (Read 13578 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4949
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: To .config or not .config
« Reply #15 on: January 29, 2023, 02:36:47 am »
Hi Dave

I asked the Dooble author and he told me he uses "$XDG_DATA_HOME" for the config files.

So, I was able to easy up my OCD with...
  SET XDG_DATA_HOME=C:\HOME\.config

With that the Dooble files, and I guess other Linux ported software that uses "XDG_DATA_HOME" will be now on my C:\HOME\.config

But now I see that also .pki is part of Dooble. I need to know where is the author pointing that.

Regards
« Last Edit: January 29, 2023, 02:41:52 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4990
  • Karma: +111/-1
    • View Profile
Re: To .config or not .config
« Reply #16 on: January 29, 2023, 04:02:09 am »
pki is from NSS, the Netscape Security Suite. Mozilla is in charge of it and has been since they took over from Netscape.
Note that Firefox etc leave those files (actually older ones as our old browser currently ships with an older NSS) in their profile.
Edit: Looking at the source, nss\lib\sysinit\nsssysinit.c, I see this comment.
Code: [Select]
/**
 * Return the path to user's NSS database.
 * We search in the following dirs in order:
 * (1) $HOME/.pki/nssdb;
 * (2) $XDG_DATA_HOME/pki/nssdb if XDG_DATA_HOME is set;
 * (3) $HOME/.local/share/pki/nssdb (default XDG_DATA_HOME value).
 * If (1) does not exist, then the returned dir will be set to either
 * (2) or (3), depending if XDG_DATA_HOME is set.
 */

So try deleting (or moving out of the way) c:\home\.pki with Dooble closed and see where it is created with XDG_DATA_HOME set.
« Last Edit: January 29, 2023, 04:10:38 am by Dave Yeo »