You are not logged in.

#1 2012-02-16 20:46:07

lgro
Member
Registered: 2010-06-02
Posts: 6

Standard application configuration and data paths on Linux

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

#2 2012-02-17 02:31:34

allen875
Member
From: Winchester, VA
Registered: 2011-09-02
Posts: 46
Website

Re: Standard application configuration and data paths on Linux

read the article Here...

Offline

#3 2012-02-17 02:55:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Standard application configuration and data paths on Linux

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

#4 2012-02-22 18:50:26

lgro
Member
Registered: 2010-06-02
Posts: 6

Re: Standard application configuration and data paths on Linux

Thanks for links and information.

Offline

Board footer

Powered by FluxBB