Skip to content

Commit 1ba9f2b

Browse files
authored
Merge pull request #234 from caryoscelus/fix-start-dir
Fix start dir
2 parents d62d549 + 751eaaa commit 1ba9f2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def getStartDir(self):
7171
elif this_file.endswith("/core/src/Config.py"):
7272
# Running as exe or source is at Application Support directory, put var files to outside of core dir
7373
start_dir = this_file.replace("/core/src/Config.py", "")
74-
elif this_file.endswith("usr/share/zeronet/src/Config.py"):
74+
elif not os.access(this_file.replace('/src/Config.py', ''), os.R_OK | os.W_OK):
7575
# Running from non-writeable location, e.g., AppImage
7676
start_dir = os.path.expanduser("~/ZeroNet")
7777
else:

0 commit comments

Comments
 (0)