You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your great work! I encountered this project when I was using skk's nail-cli and wanted to switch to geoip2. It's a good enhancement. However, I noted nali still uses the config directory in a way only legacy software does.
~/.nali is a non-standard directory for configurations on Linux. The best practice is $XDG_CONFIG_HOME/nali. The main drawback for non-standard configuration directory is that it messes up with users' home directory and is not easy to organize.
To keep nali backward-compatible as well as conform with the XDG standards, I propose following solution:
Support $XDG_CONFIG_HOME/nali as a config directory. When nali stars, it scans ~/.nali, $XDG_CONFIG_HOME/nali for configs and use the first hit.
If none of above directory exists, create $XDG_CONFIG_HOME/nali with the default configuration.
I understand nali works on multiple platforms besides Linux. I don't know much about other platforms and they may also have similar issues.
The text was updated successfully, but these errors were encountered:
Thanks for your great work! I encountered this project when I was using skk's nail-cli and wanted to switch to geoip2. It's a good enhancement. However, I noted nali still uses the config directory in a way only legacy software does.
~/.nali
is a non-standard directory for configurations on Linux. The best practice is$XDG_CONFIG_HOME/nali
. The main drawback for non-standard configuration directory is that it messes up with users' home directory and is not easy to organize.To keep nali backward-compatible as well as conform with the XDG standards, I propose following solution:
$XDG_CONFIG_HOME/nali
as a config directory. When nali stars, it scans~/.nali
,$XDG_CONFIG_HOME/nali
for configs and use the first hit.$XDG_CONFIG_HOME/nali
with the default configuration.I understand nali works on multiple platforms besides Linux. I don't know much about other platforms and they may also have similar issues.
The text was updated successfully, but these errors were encountered: