Use XDG spec dir to store config/user data

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

Mazek
Posts: 17
Joined: Thu Apr 30, 2009 3:36 am

Use XDG spec dir to store config/user data

Post by Mazek »

For Linux build, it would be nice if XnViewMP complies this specification: http://standards.freedesktop.org/basedi ... atest.html

Instead of lumping everything into a dir in the root of user's home dir, segregate configs, data and cache into ~/.config and ~/.local/share and ~/.cache according to the guideline in the basedir spec link. You would have to check whether corresponding $XDG_* env vars are set and only default to those aforementioned dirs if they are not

It's a good thing to have centralised and organised data storage and also not cluttering user's home directory