Jump to content
  • 1

Configurable location for User Files or follow XDG on Linux


simpoltin

Suggestion

This is a general request but I play on Linux and it's a little frustrating when my home folder get clogged with hidden files and folders for every program I use. I would like to see the location for the user files be configurable or at least conform to the XDG specifications on Linux.

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

To alleviate what appears to be a hard-coded location a check could be implemented that decides where to store/load the data. A plain language flow in the code block below would allow future installs to conform to XDG, allow current installs to be changed, and not breaking install for anyone that using a distro that doesn't conform to the standard.
 

If ~/.avorion exists
	use ~/.avorion
ElseIF $XDG_DATA_HOME is set
	If $XDG_DATA_HOME/avorion exists
		use $XDG_DATA_HOME/avorion
	Else
		create and use $XDG_DATA_HOME/avorion
Else
	create and use ~/.avorion
EndIF

 

 

  • Like 1
Link to comment
Share on other sites

0 answers to this suggestion

Recommended Posts

There have been no answers to this suggestion yet

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...