Linux XDG base directory specification

Discussion of development and patch submission.
Post Reply
Zorix
Posts: 25
Joined: Sat 03 Mar, 2018 1:03 am

Linux XDG base directory specification

Post by Zorix »

Over the years a lot of software has been migrating from dot directories in the home directory over to a unified and portable directory standard. PCem still uses ~/.pcem as the configuration directory. It would be advantageous to move to the newest XDG standard listed at https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html. While this is mostly cosmetic, it does allow for portability by using environment variables. I know this is minor, but something worth considering. PCem at minimum should be looking at $XDG_CONFIG_HOME/pcem or if $XDG_CONFIG_HOME is undefined, ~/.config/pcem. Could even go so far as keeping hard drive images in a directory such as $XDG_DATA_HOME/pcem/disks or ~/.local/share/pcem/disks

If this is adapted, PCem should look for configuration in the new directory, and if not found, move ~/.pcem into it if found.

Thanks for the consideration.
Post Reply