gorilla-devs / GDLauncher

GDLauncher is a simple, yet powerful Minecraft custom launcher with a strong focus on the user experience
https://gdevs.io
GNU General Public License v3.0
1.22k stars 245 forks source link

Linux: $HOME/.config is improperly used for data rather than $HOME/.local/share #1604

Open ryjelsum opened 10 months ago

ryjelsum commented 10 months ago

Describe the bug On Linux, GDLauncher currently uses the folder ~/.config/gdlauncher-next in order to store all application related data, ie. instance files. This is in violation of XDG Base Directory spec, which dictates that the .config folder is for configuration files only, and that program-related data should go in ~/.local/share.

To Reproduce Steps to reproduce the behavior:

  1. Use Linux
  2. Run the GDLauncher app image
  3. Download an instance (any)
  4. Right click the instance, and open the folder. It is in ~/.config.

Expected behavior I expected it to use ~/.local/share. Dumping program data into .config is generally considered by Linux users to be a program misbehavior.

Possible solutions Use ~/.local/share, or get the desired path from the XDG_DATA_HOME environment variable, as is dictated by XDG Base Directory specification.

Screenshots N/A

Operating System:

Additional context

N/A

blarfoon commented 10 months ago

I can confirm, and this has been fully addressed in our rewrite