Skip to content

Support for the XDG Base Directory Specification #4

@Earnestly

Description

@Earnestly

This is a feature request for supporting the XDG Base Directory Specification.

The specification works around a bug during the early UNIX v2 rewrite which caused files prepended with a '.' to be ignored from the output of ls.
While this "bug" has become a feature for some, it has also become a headache for users when developers continue to assume HOME is a great place to dump configuration files and local caches.

To address these issues XDG Basedir was formed to give developers a standard location for these files and giving the users control over where they are placed in their HOME.

If you were to support the XDG specification the following locations would change:

# XDG_CONFIG_HOME should expand to what the user set or fallback to "$HOME"/.config"
"$HOME"/.gogdownloader     → "$XDG_CONFIG_HOME"/gogdownloader

# XDG_CACHE_HOME should expand to what the user set or fallback to "$HOME"/.cache"
"$HOME"/.gogdownloader/xml → "$XDG_CACHE_HOME"/gogdownloader{,/xml}

# or
# XDG_DATA_HOME should expand to what the user set or fallback to "$HOME"/.local/share"
"$HOME"/.gogdownloader/xml → "$XDG_DATA_HOME"/gogdownloader{,/xml}

Thanks o/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions