mirror of
https://github.com/markqvist/Sideband.git
synced 2025-12-09 22:05:48 -05:00
Use internal map cache dir
This commit is contained in:
parent
a373af2b0f
commit
5110ef3b37
2 changed files with 11 additions and 4 deletions
|
|
@ -124,12 +124,14 @@ class SidebandCore():
|
|||
self.rpc_connection = None
|
||||
|
||||
self.app_dir = plyer.storagepath.get_home_dir()+"/.config/sideband"
|
||||
self.cache_dir = self.app_dir+"/cache"
|
||||
if self.app_dir.startswith("file://"):
|
||||
self.app_dir = self.app_dir.replace("file://", "")
|
||||
|
||||
self.rns_configdir = None
|
||||
if RNS.vendor.platformutils.is_android():
|
||||
self.app_dir = android_app_dir+"/io.unsigned.sideband/files/"
|
||||
self.cache_dir = self.app_dir+"/cache"
|
||||
self.rns_configdir = self.app_dir+"/app_storage/reticulum"
|
||||
self.asset_dir = self.app_dir+"/app/assets"
|
||||
elif RNS.vendor.platformutils.is_darwin():
|
||||
|
|
@ -141,6 +143,10 @@ class SidebandCore():
|
|||
else:
|
||||
self.asset_dir = plyer.storagepath.get_application_dir()+"/sbapp/assets"
|
||||
|
||||
self.map_cache = self.cache_dir+"/maps"
|
||||
if not os.path.isdir(self.map_cache):
|
||||
os.makedirs(self.map_cache)
|
||||
|
||||
self.icon = self.asset_dir+"/icon.png"
|
||||
self.icon_48 = self.asset_dir+"/icon_48.png"
|
||||
self.icon_32 = self.asset_dir+"/icon_32.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue