bubblewrap
bubblewrap copied to clipboard
Adhere to XDG directory specifications
Describe the bug bubblewrap-cli creates config directory in home directory on Linux: ~/.bubblewrap/ .
To Reproduce Steps to reproduce the behavior:
- Run bubblewrap-cli init
Expected behavior Configuration files should be kept in ~/.config/ directory, in this case ~/.config/bubblewrap . That makes it easier to backup config files and keeps home directory clean.
Desktop (please complete the following information):
- OS: Linux - Fedora 32
Link to specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
It seems the XDG spec would require using $XDG_CONFIG_HOME/.bubblewrap, where $XDG_CONFIG_HOME usually defaults to ˜/.config/.
It also seems that $XDG_DATA_HOME/.bubblewrap (defaults to ˜/.local/share) would be where the spec specifies saving user data. Not sure this is the right place to place the JDK and Android SDK installed automatically by Bubblewrap though.
@chenlevy24, who recently implemented a change to the config location, for thoughts.
An example fix using cache-directory https://github.com/strugee/pacote/commit/891b7980d965dde6028adefa5b366a44d3f4a20d
Here's another project xdg-app-paths