Skip to content

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

Open
@ryjelsum

Description

@ryjelsum
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions