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) + "'")