add support for both native and flatpak versions of prism launcher

This commit is contained in:
Obie Hinojosa 2025-05-28 21:41:16 -05:00
parent 0e8e4973c5
commit 5569eceb8e

View File

@ -150,8 +150,16 @@ if platform.system() == "Linux":
if detectedlauncher == "OfficialLauncher":
print("[INFO]: No 3rd party launchers detected, falling back to default official launcher directories")
os.chdir(".minecraft")
if detectedlauncher == "PrismLauncherPackage":
print("[INFO]: Using Prism Launcher (native) directory settings.")
os.chdir(".local/share/PrismLauncher/instances/1.20.1/minecraft/")
if detectedlauncher == "PrismLauncherFlatpak":
print("[INFO]: Using Prism Launcher (native) directory settings.")
os.chdir(".var/app/org.prismlauncher.Prism.Launcher/data/PrismLauncher/instances/1.20.1/minecraft/")
os.chdir(".minecraft")
mcfolder = str(Path.cwd())
modfolder = mcfolder + '/mods'
print("[INFO]: Changed current working directory to '" + str(mcfolder) + "'")