tanrax / maza-ad-blocking

Simple, native and efficient local ad blocker. Only Bash.
https://maza-ad-blocking.andros.dev/
Apache License 2.0
1.78k stars 64 forks source link

config directory inconcistency #23

Closed codingCoffee closed 1 year ago

codingCoffee commented 1 year ago

Config directory when running maza update is $HOME/.config/maza, but while running sudo maza start is $HOME/.maza. This is owing to the availability of XDG_CONFIG_HOME bash variable. It resolves to $HOME/.config as the normal user, but when executed as root it resolves to nothing.

A potential fix is submitted in https://github.com/tanrax/maza-ad-blocking/pull/22 to standardize the config directory.

tanrax commented 1 year ago

Thank you for the PR.