MC client: use user_path to fix appimage permissions

This commit is contained in:
espeon65536 2022-06-02 16:43:25 -05:00 committed by Fabian Dill
parent c7a32dc91b
commit 51341f6255
1 changed files with 2 additions and 2 deletions

View File

@ -254,10 +254,10 @@ def get_minecraft_versions(version, release_channel="release"):
local = True
if local:
with open(Utils.local_path("minecraft_versions.json"), 'r') as f:
with open(Utils.user_path("minecraft_versions.json"), 'r') as f:
data = json.load(f)
else:
with open(Utils.local_path("minecraft_versions.json"), 'w') as f:
with open(Utils.user_path("minecraft_versions.json"), 'w') as f:
json.dump(data, f)
try: