GDLauncher icon indicating copy to clipboard operation
GDLauncher copied to clipboard

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

Open ryjelsum opened this issue 1 year ago • 1 comments

  • [x] I searched the issue tracker for other issues covering my case
  • [x] This is a Launcher issue. (Usually if you can reproduce it with a fresh instance)

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:

  • OS: Linux
  • Launcher Version: 1.1.30
  • Java Version: N/A
  • Minecraft Version: N/A
  • Mod Loader: N/A

Additional context

N/A

ryjelsum avatar Jan 24 '24 19:01 ryjelsum

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

blarfoon avatar Jan 24 '24 20:01 blarfoon