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

Linux /My Documents/ path listens to XDG_DOCUMENTS_DIR #1020

Open
Eonfge opened this issue May 11, 2018 · 2 comments
Open

Linux /My Documents/ path listens to XDG_DOCUMENTS_DIR #1020

Eonfge opened this issue May 11, 2018 · 2 comments

Comments

@Eonfge
Copy link

Eonfge commented May 11, 2018

Issue
After setting up the FAF client using the tutorial from Tatsu, I discovered that the documents folder where FAF puts it's downloaded files (maps, mods), is taken from the XDG config which is defined in ~/.config/user-dirs.dirs

What does this do? Well, if you store your personal documents in a different directory then where you store your Wine documents, you'll not be able to use any mods or downloaded maps. In my case, FAF stored the map in /mnt/userdata/documents and not in /home/documents

You could test this by changing the XDG reference on your machine. I used Ubuntu 18.04 when I discovered this issue.

workaround
I made a symlink from the /mnt/userdata folder to the /home/doocuments folder. Alternatively, you could also copy-paste all files, but that gets pretty labour intensive.

proposed fix
The most robust way, would be to ask WIne where the /My documents/ are. That way, it will put the files in the same bottle/prefix as where application is started from.

@Eonfge Eonfge changed the title Linux /documents/ path listens to XDG_DOCUMENTS_DIR Linux /My Documents/ path listens to XDG_DOCUMENTS_DIR May 11, 2018
@Wesmania
Copy link
Contributor

Wesmania commented May 11, 2018

Thanks for the report! I'll look into it when I have time. Since this data is owned by the client, the best solution would probably be to tell the game where to look for the files, if possible.

@Wesmania
Copy link
Contributor

It seems that the game determines where to look for the files by loading an init_*.lua file (depending on game type), and sadly the paths are hardcoded. The java client generates these files on its own, though I'd prefer to get them from the server and only generate the bare minimum necessary to configure things.

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

No branches or pull requests

2 participants