add support for both native and flatpak versions of prism launcher
This commit is contained in:
parent
0e8e4973c5
commit
5569eceb8e
10
installer.py
10
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/")
|
||||
|
||||
mcfolder = str(Path.cwd())
|
||||
modfolder = mcfolder + '/mods'
|
||||
print("[INFO]: Changed current working directory to '" + str(mcfolder) + "'")
|
||||
|
Loading…
x
Reference in New Issue
Block a user