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 checks for Steam Linux install locations #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Nat-the-Chicken
Copy link

Added checks for a few common locations where Steam might install the game on Linux, checking a Linux-specific environment variable to get the user directory. When tested, it was able to find the game when it was installed at the first listed location.
I noticed this code comment when I was hunting through the files figuring them out, and it seemed like the perfect thing for me to add, since I run the game and randomizer entirely on Ubuntu with Proton. (Also, it's purely for QoL during first setup, and won't break if the user's file tree is in some bizarre configuration.) As a possible next step, this section of Settings.java could also be modified to check common save data locations, including locations used by Proton as well as Windows and Linux builds running natively, and determine which location is in use by whether it contains a lamu.dat file.

I had plans for bigger contributions, especially to do with seed export/import, but I've been told to "start small," and also I'm not very good at using git yet. So I'm not going to overhaul anything right now, and if I do, it may end up confined to my own fork.

Added checks for a few common locations where Steam might install the game on Linux, checking a Linux-specific environment variable to get the user directory.
Just a tiny little inconsequential change because I didn't like how I used the linuxUserPath variable before. (Re-tested anyway to avoid stupid mistakes.) Feel free to combine with the original commit.
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.

None yet

1 participant