You are not logged in.

#1 2020-04-10 19:59:10

TheLastMage
Member
Registered: 2020-04-10
Posts: 2

[SOLVED] Getting rid of .mozilla in $HOME

First post here, sorry if I am doing something wrong.

I am trying to clean my home directory, putting every configuration file in .config, every cache file in .cache and so on... all following the XDG norms. But, Firefox seems to doesn't care about this. According to the XDG Base Directory Page Firefox's is "hardcoded". I've read most of the 15 years old Thread about this and that didn't help.

Is there any workaround? Alias and startup commands? Environment Variables? Syslinks probably works, but it defeats the purpose of cleaning my home directory.

Last edited by TheLastMage (2020-04-10 21:23:48)

Offline

#2 2020-04-10 20:40:44

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: [SOLVED] Getting rid of .mozilla in $HOME

i think it can be done, you can launch firefox with certain command line arguments to force it to use a profile located in a certain path...
thats the only solution i see to be honest . If i remember correctly its -profile "profile_path"
But you would have to modify all the menu entries and so on...

Offline

#3 2020-04-10 20:56:40

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Getting rid of .mozilla in $HOME

InvisibleRasta wrote:

you would have to modify all the menu entries and so on...

Not necessarily.

Just place a launch script earlier in PATH, for example /usr/local/bin/firefox, with this content:

#!/bin/sh
/usr/bin/firefox --profile "${HOME}/.config/path/to/profile" "$@"

Jin, Jîyan, Azadî

Offline

#4 2020-04-10 21:02:28

TheLastMage
Member
Registered: 2020-04-10
Posts: 2

Re: [SOLVED] Getting rid of .mozilla in $HOME

YES! It worked! Thanks.

How do I mark this as solved?

EDIT: I tried InvisibleRasta's solution, that solved the issue quite well. I made an alias and modified sxhkd so I don't have to type the profile path.

Last edited by TheLastMage (2020-04-10 21:08:23)

Offline

#5 2020-04-10 21:10:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Getting rid of .mozilla in $HOME


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2023-10-15 10:13:05

b42
Member
Registered: 2023-07-20
Posts: 203

Re: [SOLVED] Getting rid of .mozilla in $HOME

Head_on_a_Stick wrote:
InvisibleRasta wrote:

you would have to modify all the menu entries and so on...

Not necessarily.

Just place a launch script earlier in PATH, for example /usr/local/bin/firefox, with this content:

#!/bin/sh
/usr/bin/firefox --profile "${HOME}/.config/path/to/profile" "$@"

sorry for bumping the old thread. I am also looking for a way to put my .mozilla dir under ~/.config

How exactly do I place this launch script earlier in PATH?

Offline

#7 2023-10-16 14:17:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED] Getting rid of .mozilla in $HOME

Read the quote again.

Don't necrobump old threads https://wiki.archlinux.org/title/Genera … bumping%22

Closing.

Offline

Board footer

Powered by FluxBB