Re: [AD] standard path updates

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, Jan 6, 2011 at 10:57 PM, Thomas Fjellstrom
<tfjellstrom@xxxxxxxxxx> wrote:
> The xdg specs[1] state you should first look in the XDG_* ENV variables, then
> fall back to ~/.config for settings and ~/.local/share for data
>
Implemented and committed that. app_name must be set, else it returns
NULL. (Docs already warn about that.) org_name is optional.

Output under Ubuntu:

RESOURCES_PATH: /home/matthew/src/allegro-5.1/build/examples/
TEMP_PATH: /tmp/
USER_DATA_PATH: /home/matthew/.local/share/liballeg.org/ex_get_path/
USER_SETTINGS_PATH: /home/matthew/.config/liballeg.org/ex_get_path/
USER_HOME_PATH: /home/matthew/
USER_DOCUMENTS_PATH: /home/matthew/Documents/
EXENAME_PATH: /home/matthew/src/allegro-5.1/build/examples/ex_get_path

--
Matthew Leverton




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/