You are not logged in.
Hi,
I have some problem with choosing proper place for application global configuration and data paths on Linux.
I saw following paths for application configuration:
/etc/app_name
/etc/xdg/app_name
/usr/share/app_name
/usr/local/share/app_name
/opt/app_name
and following for application data:
/usr/share/app_name
/usr/local/share/app_name
/opt/app_name
Which directories are standard and distribution independent?
best regards,
Lukasz
Last edited by lgro (2012-02-16 20:46:23)
Offline
Wouldn't environment variables like XDG_DATA_HOME, XDG_CONFIG_DIRS, XDG_CONFIG_HOME, etc be best?
Many languages' standard libraries have functions for accessing these effeciently in a distro-agnostic manner.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Thanks for links and information.
Offline