Skip to content

Switch to using XDG base directories #94

@Legimet

Description

@Legimet

I would like to propose putting Enigma user config/data in directories specified by the XDG Base Directory Specification, since this has effectively become the standard on *nix systems to avoid cluttering the home directory (excluding MacOS, which has its own path).

I think we can use the following division:

  • enigmarc.xml in XDG_CONFIG_HOME. I've also seen references in the source code to a Lua config file ~/.enigmarc. I'm not sure if this is still used (I don't have one on my system), but if so, it could go in the same place.
  • thumbnails in XDG_CACHE_HOME
  • everything else in XDG_DATA_HOME

Enigma could continue to support the old paths if they exist. Perhaps offer to migrate everything as was done for MacOS.

I would be willing to write a patch for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions