summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/favicons/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/favicons/__init__.py b/searx/favicons/__init__.py
index 2b3da1016..39c4ad716 100644
--- a/searx/favicons/__init__.py
+++ b/searx/favicons/__init__.py
@@ -22,8 +22,9 @@ def init():
# pylint: disable=import-outside-toplevel
from . import config, cache, proxy
+ from .. import settings_loader
- cfg_file = pathlib.Path("/etc/searxng/favicons.toml")
+ cfg_file = (settings_loader.get_user_cfg_folder() or pathlib.Path("/etc/searxng")) / "favicons.toml"
if not cfg_file.exists():
if is_active():
logger.error(f"missing favicon config: {cfg_file}")
@@ -34,4 +35,4 @@ def init():
cache.init(cfg.cache)
proxy.init(cfg.proxy)
- del cache, config, proxy, cfg
+ del cache, config, proxy, cfg, settings_loader