Added user-local config dir on desktop

This commit is contained in:
Mark Qvist 2022-07-08 13:53:04 +02:00
parent ad4662efa8
commit 06642c0fda
4 changed files with 25 additions and 6 deletions

View file

@ -70,11 +70,11 @@ class SidebandCore():
self.owner_app = owner_app
self.reticulum = None
self.app_dir = plyer.storagepath.get_application_dir()
self.app_dir = plyer.storagepath.get_home_dir()+"/.sideband"
self.rns_configdir = None
if RNS.vendor.platformutils.get_platform() == "android":
self.app_dir = self.app_dir+"/io.unsigned.sideband/files/"
self.app_dir = plyer.storagepath.get_application_dir()+"/io.unsigned.sideband/files/"
self.rns_configdir = self.app_dir+"/app_storage/reticulum"
if not os.path.isdir(self.app_dir+"/app_storage"):