exposedev / exposedev/expose

[Feature Request]: Support XDG base directory specification

Open
#467 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
4.6k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

### Feature Description

`expose publish` creates a new configuration file in `~/.expose/config.php`.

This is another directory in my home dir, which gets pretty crowded.
On Linux the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir/latest/) solves this problem by providing standard directories - including `~/.config/` for configuration files.

It would be nice if expose would follow that specification and store its configuration in `$XDG_CONFIG_HOME` when this environment variable is set, and falls back to `~/.config/` if it is not set.
A fallback to `~/.expose` for existing installations would be necessary as well.

### Is this feature valuable for other users as well and why?

Making backups of one's configuration is easier because users only have to copy `~/.config`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.