MC client: use user_path to fix appimage permissions
This commit is contained in:
parent
c7a32dc91b
commit
51341f6255
|
@ -254,10 +254,10 @@ def get_minecraft_versions(version, release_channel="release"):
|
||||||
local = True
|
local = True
|
||||||
|
|
||||||
if local:
|
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)
|
data = json.load(f)
|
||||||
else:
|
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)
|
json.dump(data, f)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue