mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
MC client: use user_path to fix appimage permissions
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user