USDX uses ~/.ultrastardx to store its data on Unix platforms.
Expected behaviour
In order to declutter home directory, decouple configuration from other kinds of data, and allow users to configure where files are stored in easy manner. XDG Base Directories standard has been introduced. Software compliant with it should use various XDG_* which allow user to specify where files should be stored.
I think .ultrastardx directory should be split in following fashion:
config.ini goes to $XDG_CONFIG_HOME/ultrastardx (if not defined XDG_CONFIG_HOME defaults to ~/.config
logs directory goes to $XDG_CACHE_HOME/ultrastardx (if not defined XDG_CACHE_HOME defaults to ~/.cache
rest of files to $XDG_DATA_HOME/ultrastardx (if not defined, XDG_DATA_HOME defaults to ~/.local/share/)
Also see Debian Wiki for table showing what each directory should contain (at the very bottom of the page)
In order to not disrupt existing users, if ~/.ultrastardx already exists, it should be used instead.
Actual behaviour
USDX uses
~/.ultrastardx
to store its data on Unix platforms.Expected behaviour
In order to declutter home directory, decouple configuration from other kinds of data, and allow users to configure where files are stored in easy manner. XDG Base Directories standard has been introduced. Software compliant with it should use various
XDG_*
which allow user to specify where files should be stored.I think
.ultrastardx
directory should be split in following fashion:config.ini
goes to$XDG_CONFIG_HOME/ultrastardx
(if not definedXDG_CONFIG_HOME
defaults to~/.config
logs
directory goes to$XDG_CACHE_HOME/ultrastardx
(if not definedXDG_CACHE_HOME
defaults to~/.cache
$XDG_DATA_HOME/ultrastardx
(if not defined,XDG_DATA_HOME
defaults to~/.local/share/
)Also see Debian Wiki for table showing what each directory should contain (at the very bottom of the page)
In order to not disrupt existing users, if
~/.ultrastardx
already exists, it should be used instead.