AppLocalDataLocation

This commit is contained in:
unknown 2022-06-29 02:40:30 +02:00
parent b18d4c9aee
commit 263e125aa8

View file

@ -34,10 +34,10 @@ def getDataDir():
# in the Pesterchum install directory (like before) # in the Pesterchum install directory (like before)
try: try:
if isOSX(): if isOSX():
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DataLocation), "Pesterchum/") return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppLocalDataLocation), "Pesterchum/")
elif isLinux(): elif isLinux():
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.HomeLocation), ".pesterchum/") return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.HomeLocation), ".pesterchum/")
else: else:
return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.DataLocation), "pesterchum/") return os.path.join(QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppLocalDataLocation), "pesterchum/")
except UnicodeDecodeError: except UnicodeDecodeError:
return '' return ''