Skip to content

Conversation

@crueter
Copy link
Contributor

@crueter crueter commented Jan 14, 2026

Closes #4369

Previously, FEX would use $HOME/.fex-emu for its data and config if
XDG_CONFIG_HOME and/or XDG_DATA_HOME were unset. This doesn't follow
XDG, so instead we do a fallback to $HOME/.config and
$HOME/.local/share respectively if XDG env vars are unset. Also,
pre-emptively creates those directories since ~/.local/share and
~/.config existing is technically not a guarantee if XDG dirs are unset.

Signed-off-by: crueter [email protected]

Previously, FEX would use `$HOME/.fex-emu` for its data and config if
`XDG_CONFIG_HOME` and/or `XDG_DATA_HOME` were unset. This doesn't follow
XDG, so instead we do a fallback to `$HOME/.config` and
`$HOME/.local/share` respectively if XDG env vars are unset. Also,
pre-emptively creates those directories since `~/.local/share` and
`~/.config` existing is technically not a guarantee if XDG dirs are unset.

Signed-off-by: crueter <[email protected]>
@Sonicadvance1
Copy link
Member

Please make sure that if $HOME/.fex-emu exists, that FEX continues using that folder instead of these XDG folder directories.

Signed-off-by: crueter <[email protected]>
@crueter
Copy link
Contributor Author

crueter commented Jan 14, 2026

Please make sure that if $HOME/.fex-emu exists, that FEX continues using that folder instead of these XDG folder directories.

Done

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.

FEX does not comply with the "XDG Base Directory Specification"

3 participants