diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index c24a0e0b..78c4f39a 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -686,7 +686,7 @@ class UiWebsocketPlugin(object): if sys.platform == "linux": sys_db_paths += ['/usr/share/GeoIP/' + db_name] - data_dir_db_path = config.data_dir / db_name + data_dir_db_path = config.start_dir / db_name db_paths = sys_db_paths + [data_dir_db_path] diff --git a/src/Content/ContentDb.py b/src/Content/ContentDb.py index 5b63993d..0abd3658 100644 --- a/src/Content/ContentDb.py +++ b/src/Content/ContentDb.py @@ -153,7 +153,7 @@ content_dbs = {} def getContentDb(path=None): if not path: - path = config.data_dir / 'content.db' + path = config.start_dir / 'content.db' if path not in content_dbs: content_dbs[path] = ContentDb(path) content_dbs[path].init() diff --git a/src/main.py b/src/main.py index a6622432..c9f6b3d0 100644 --- a/src/main.py +++ b/src/main.py @@ -129,7 +129,7 @@ def init(): if config.action == "main": from util import helper try: - lock = helper.openLocked(config.data_dir / 'lock.pid', "w") + lock = helper.openLocked(config.start_dir / 'lock.pid', "w") lock.write(f"{os.getpid()}") except BlockingIOError as err: startupError(f"Can't open lock file, your 0net client is probably already running, exiting... ({err})")