onivim / oni2

Native, lightweight modal code editor
https://v2.onivim.io
MIT License
7.82k stars 280 forks source link

Make extension installation directory more XDG base directory compliant #1810

Open jrwrigh opened 4 years ago

jrwrigh commented 4 years ago

Currently the VSC extensions are installed at ~/.config/oni2/extensions (at least according to the documentation). While I do appreciate it being installed in a XDG base directory and that you can specify a custom directory that it is installed to, extensions (ie. non-configuration files) should actually be in XDG_DATA_HOME (which defaults to $HOME/.local/share. XDG_CONFIG_HOME is supposed to be for user-specific configurations, while XDG_DATA_HOME is supposed to before user-specific data files (such as extensions).

See more information about XDG base directory stack at the Arch wiki and the freedesktop specification itself.

CrossR commented 4 years ago

Sounds like we should be able to use Dir here to be more consistent?