Skip to content

XDG Base Directory Specification Compliance #250

@eddsalkield

Description

@eddsalkield

Since 2010, the XDG Base Directory Specification has been widely accepted, defining a standard for the locations of user configuration files. Currently, rcm checks by default for the rcrc configuration file in ~/.rcrc, which is not in alignment with the specification.

I propose that the following behaviour be implemented, to locate the default .rcrc file:

  • The currently-default ~/.rcrc is checked. If it does not exist, then:
    • If $XDG_CONFIG_HOME is set, rcm checks $XDG_CONFIG_HOME/rcm/rcrc
    • If $XDG_CONFIG_HOME is not set, rcm checks $HOME/.config/rcm/rcrc

This would bring rcm into alignment with the specification, without breaking backwards compatibility.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions