Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
ryjelsum opened this issue Jan 24, 2024 · 1 comment
Open
2 tasks done

Comments

@ryjelsum
Copy link

  • I searched the issue tracker for other issues covering my case
  • 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

@blarfoon
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants