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

Look for Minecraft Instances in Common Places #35

Open
OpenBagTwo opened this issue May 19, 2023 · 0 comments
Open

Look for Minecraft Instances in Common Places #35

OpenBagTwo opened this issue May 19, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@OpenBagTwo
Copy link
Owner

OpenBagTwo commented May 19, 2023

GIVEN Steve has EnderChest installed on his system
AND that system has Minecraft installed via both the official launcher and a MultiMC-derivative like PrismLauncher

WHEN he opens a terminal, navigates to his Minecraft root and runs the command:

$ enderchest gather --all

THEN EnderChest will search for valid Minecraft instances in a wide variety of common installation locations (see notes)
AND THEN append or update the enderchest.cfg instance manifest with any valid instances it finds

SO that Steve doesn't have to manually specify the directories to search (a la #33)

Notes

So the good news is that python's Path.rglob is pretty forgiving--if you give it a path that doesn't exist, it'll just return empty. The bad news is that permission errors are a thing, and if you iterate over Path("/").rglob(".minecraft"), it'll try its darndest.

With that in mind, if I want to do this, I'm going to need to put in the work of finding out where exactly Minecraft gets regularly installed, and I want to do this on Windows and macOS as well as Linux.

The launchers to prioritize are going to be:

  • The official one, which is fairly straightforward (though I need to remember to check the flatpak)
  • MultiMC, the O.G.
  • PrismLauncher
  • ATLauncher
  • Curseforge
  • GDLauncher
  • Badlion?

and the ones that are available for Linux I'll need to check all their official installation methods (apt/deb/AUR, AppImage, Flatpak and yeah, maybe even snap 🤮)

@OpenBagTwo OpenBagTwo added the enhancement New feature or request label May 19, 2023
@OpenBagTwo OpenBagTwo added this to the v0.2 milestone May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant