mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
add firefox XDG directory to search paths
This commit is contained in:
parent
2f5663cd2f
commit
2c36263ad4
1 changed files with 3 additions and 0 deletions
|
|
@ -234,13 +234,16 @@ def _firefox_based_browser_settings(browser_name):
|
||||||
else:
|
else:
|
||||||
flatpak_root = os.path.expanduser('~/.var/app')
|
flatpak_root = os.path.expanduser('~/.var/app')
|
||||||
snap_root = os.path.expanduser('~/snap')
|
snap_root = os.path.expanduser('~/snap')
|
||||||
|
config = _config_home()
|
||||||
browser_dirs = {
|
browser_dirs = {
|
||||||
'firefox': [
|
'firefox': [
|
||||||
|
os.path.join(config, 'mozilla/firefox'),
|
||||||
os.path.expanduser('~/.mozilla/firefox'),
|
os.path.expanduser('~/.mozilla/firefox'),
|
||||||
os.path.join(flatpak_root, 'org.mozilla.firefox/.mozilla/firefox'),
|
os.path.join(flatpak_root, 'org.mozilla.firefox/.mozilla/firefox'),
|
||||||
os.path.join(snap_root, 'firefox/common/.mozilla/firefox'),
|
os.path.join(snap_root, 'firefox/common/.mozilla/firefox'),
|
||||||
],
|
],
|
||||||
'librewolf': [
|
'librewolf': [
|
||||||
|
# librewolf does not follow the XDG specification yet: https://codeberg.org/librewolf/issues/issues/2682
|
||||||
os.path.expanduser('~/.librewolf'),
|
os.path.expanduser('~/.librewolf'),
|
||||||
os.path.join(flatpak_root, 'io.gitlab.librewolf-community/.librewolf'),
|
os.path.join(flatpak_root, 'io.gitlab.librewolf-community/.librewolf'),
|
||||||
# not published on snapcraft
|
# not published on snapcraft
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue