Jump to content

Follow the XDG Base Directory Specification on Linux


Faalagorn

Recommended Posts

Currently on Linux the game puts the files in the user folder under the folder "Zomboid", that is "/home/user/Zomboid" or shorthanded "~/Zomboid".

 

However, vast majority of Linux applications, including plethora of games follow the XDG Base Directory Specification – that default to ~/.config (for config) and ~/.local/share (for files such as saves) specifically. That makes backing up and organizing program configs and data on Linux simplier, and one can change the folder to something else by setting $XDG_DATA_HOME and $XDG_CONFIG_HOME variables.

 

PC Gaming Wiki (PCGW) list that property, here's the example for Project Zomboid: https://www.pcgamingwiki.com/wiki/Project_Zomboid#Configuration_file.28s.29_location

 

Historically many programs also started with putting files in just the home directory but moved to XDG Base Directory Specification but they still accept files from old location – maybe Zomboid could do the same? That way the old location would work, but you'd have an option to put files in XDG_DATA_HOME and XDG_CONFIG_HOME location respectively.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...