thats just how the cookie crumbles - programs have been sourcing and creating
dotfiles since long before mozilla, the FHS, $XDG_CONFIG_HOME, or the ~/.config
directory - most people are not so annoyed by it - that is why programs like
`ls`, GUI file managers, and other programs hide dotfiles by default - they are
expected to be there and expected to be messy; and they are probably never
going away

if you do this, bear in mind that you can not assume that every system will
have $XDG_CONFIG_HOME set or have the XDG tools at all - you would want to test
for it and fallback to the default

  mozilla_dir=${XDG_CONFIG_HOME:-$HOME/.mozilla}

also, if the FHS means anything, $XDG_CONFIG_HOME is not the proper place for
the .mozilla directory - $XDG_CONFIG_HOME is the per-user analog for /etc - that
is for user-maintained configuration files - if the .mozilla directory were
installed system-wide, it would be under /usr/share/ or /usr/local/share/,
according to the FSH semantics - given what the .mozilla directory is used for,
the appropriate directory is ~/.local/share/mozilla (aka:
$XDG_DATA_HOME/mozilla), which is the per-user analog for /usr/share/

one last but of advice - you probably do not need to do this yourself - its not
like you are are the only person who has had that idea there - there is an open
ticket for that feature request - if i had this motivation, i would get on that
thread and encourage mozilla to implement it for everyone

https://bugzilla.mozilla.org/show_bug.cgi?id=259356
_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to