Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XDG_DATA_HOME as a directory for resources #2206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jstsmthrgk
Copy link
Contributor

The builtin resources are installed into /usr/share/emptyepsilon on linux by default.

The user equivalent of that directory is ~/.local/share/emptyepsilon (or $XDG_DATA_HOME/emptyepsilon if $XDG_DATA_HOME is set). So it would make sense to also pick up resources in that directory.

the structure is on purpose

if $XDG_DATA_HOME
    $XDG_DATA_HOME/emptyepsilon
else if $HOME
    $HOME/.local/share/emptyepsilon
if $HOME
    $HOME/.emptyepsilon

so that ~/.emptyepsilon is still picked up no matter if $XDG_DATA_HOME is set or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant