feat: add XDG_CONFIG_HOME to Firefox profile search paths

Firefox (as of v147) now supports the XDG Base Directory Specification.
This change ensures the script detects profiles located in
$XDG_CONFIG_HOME/mozilla/firefox, falling back to $HOME/.config if the
variable is unset.

This prevents the script from missing profiles on modern Linux
installations that have migrated away from the traditional
$HOME/.mozilla/ directory.
This commit is contained in:
FosRex 2026-01-17 10:05:01 +05:45
parent 1f30fe71dd
commit 0ed4624b18
No known key found for this signature in database

View file

@ -336,6 +336,7 @@ multiselect() {
#== Profile Dir ================================================================
firefoxProfileDirPaths=(
"${HOME}/.mozilla/firefox"
"${XDG_CONFIG_HOME:-$HOME/.config}/mozilla/firefox"
"${HOME}/.waterfox"
"${HOME}/.librewolf"
"${HOME}/.ghostery browser"