UltraStar-Deluxe / USDX

The free and open source karaoke singing game UltraStar Deluxe, inspired by Sony SingStar™
https://usdx.eu
GNU General Public License v2.0
879 stars 162 forks source link

Adhere to XDG Base Directory Specification #593

Open fenuks opened 3 years ago

fenuks commented 3 years ago

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:

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.

s09bQ5 commented 3 years ago

Useful for running as a Flatpak. Patches welcome.