Skip to content

Respect XDG base directory variables instead of hardcoding paths #411

Description

@lanthanic

As a little bit of context, on my system I have XDG_CONFIG_HOME set to $HOME/.local/config instead of the usual $HOME/.config.

However, abaddon hardcodes $HOME/.config and as such it does not read my .ini config. Looking through the source code, XDG_DATA_HOME $HOME/.local/share is also hardcoded.

Usually, it should try to getenv("XDG_CONFIG_HOME") and if that fails, default to $HOME/.config according to the spec.

I'd be open to working on this issue if you want, albeit I'm a C guy not a C++ guy.

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