You are not logged in.

#1 2021-04-19 16:00:30

MoranCivya2222
Member
Registered: 2020-11-04
Posts: 6

XDG Base Directory - Firefox creates $HOME/.pki folder

I am trying to declutter my $HOME directory by following the XDG Base Directory ArchWiki article.
I have moved my

.pki

to my

.local/share

folder. However, Firefox recreates the folder in my home directory. How can I solve this? Thanks in advance.

Offline

#2 2021-04-19 16:57:29

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

I'm sure you know that both locations reside in your home directory. So i wouldn't call it "decluttering" wink

Last edited by archimboldo (2021-04-19 16:59:31)


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#3 2021-04-20 10:13:33

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,350

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

The archwiki article mentions NSS aka Network Security Services as the application that uses that folder.

I'd check nss documentation to find out how to change its location .

Last edited by Lone_Wolf (2021-04-20 10:14:31)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2021-04-20 11:17:00

MoranCivya2222
Member
Registered: 2020-11-04
Posts: 6

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

archimboldo wrote:

I'm sure you know that both locations reside in your home directory. So i wouldn't call it "decluttering" wink

Well, I would have one folder instead of two in my home directory, so it is a small improvement.

Offline

#5 2021-04-20 12:43:05

StJimmy
Member
From: Rheinland
Registered: 2020-02-26
Posts: 72

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

Did you rename .pki to pki (i.e. remove the period) after moving it to ~/.local/share?


Nanos gigantum humeris insidentes.

Offline

#6 2021-04-20 13:09:24

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

MoranCivya2222 wrote:

Well, I would have one folder instead of two in my home directory, so it is a small improvement.

It's a hidden folder, set your file properly and it won't bother you... just a suggestion

Last edited by archimboldo (2021-04-20 13:10:33)


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#7 2021-04-20 13:13:48

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

Lone_Wolf wrote:

The archwiki article mentions NSS aka Network Security Services as the application that uses that folder.

I'd check nss documentation to find out how to change its location .

Precisely.


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#8 2021-04-20 22:42:38

MoranCivya2222
Member
Registered: 2020-11-04
Posts: 6

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

StJimmy wrote:

Did you rename .pki to pki (i.e. remove the period) after moving it to ~/.local/share?

Yes, I did.

In any case, I will check the NSS documentation and then I'll post a solution if I find one.

Offline

#9 2021-04-22 00:31:16

loqs
Member
Registered: 2014-03-06
Posts: 19,015

Re: XDG Base Directory - Firefox creates $HOME/.pki folder

From https://github.com/nss-dev/nss/blob/mas … init.c#L64 try moving the folder to  $XDG_DATA_HOME/pki/nssdb use $XDG_DATA_HOME default of $HOME/.local/share/ if it is not set.

Offline

Board footer

Powered by FluxBB