From 5569eceb8e7d9bd3ddedbf3d274dbad04d590813 Mon Sep 17 00:00:00 2001 From: Obie Hinojosa Date: Wed, 28 May 2025 21:41:16 -0500 Subject: [PATCH] add support for both native and flatpak versions of prism launcher --- installer.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/installer.py b/installer.py index 0febe68..0699d99 100644 --- a/installer.py +++ b/installer.py @@ -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) + "'")