[lfs] Only check XDG_CONFIG_HOME when not on 'Windows'#716
Open
loathingKernel wants to merge 1 commit into
Open
[lfs] Only check XDG_CONFIG_HOME when not on 'Windows'#716loathingKernel wants to merge 1 commit into
loathingKernel wants to merge 1 commit into
Conversation
c833079 to
719b8d5
Compare
Collaborator
Author
|
FWIW, I am not sure this is useful any more, even if someone wants to run the windows binary under Wine. Wine recently started filtering env variables starting with |
Member
|
What is the use case of running legendary under wine anyway? |
Collaborator
Author
|
Purely for testing purposes, it's just easier to run it in Wine when I am normally developing on Linux. Anecdotally, I know of people running Rare in Wine for Android, but this should not affect them. At least, I am not aware of any such issue occuring. |
When running legendary through Wine and `XDG_CONFIG_HOME` is set in the environment, `config_path` resolves to the absolute path to the Linux config directory. Wine in turn resolves the path in the way that Legendary uses the existing Linux host config directory instead of creating/using the one under Wine prefix in `%USERPROFILE%\.config`
719b8d5 to
e61c35a
Compare
imLinguin
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When running legendary through Wine and
XDG_CONFIG_HOMEis set in the environment,config_pathresolves to the absolute path to the Linux config directory. Wine in turn resolves the path in a way that Legendary uses the existing Linux host config directory instead of creating/using the one under Wine prefix in%USERPROFILE%\.config.