From 9df412fb4f2c1dc0f3f123cc043e4e255f16abd9 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 3 Oct 2022 14:30:08 +0200 Subject: [PATCH] Fetch app dir for android only --- sbapp/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbapp/main.py b/sbapp/main.py index 61d36aa..ee99701 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -73,11 +73,12 @@ class SidebandApp(MDApp): self.title = "Sideband" self.app_state = SidebandApp.STARTING self.android_service = None - self.app_dir = plyer.storagepath.get_application_dir() if RNS.vendor.platformutils.get_platform() == "android": + self.app_dir = plyer.storagepath.get_application_dir() self.sideband = SidebandCore(self, is_client=True, android_app_dir=self.app_dir) else: + self.app_dir = None self.sideband = SidebandCore(self, is_client=False) self.update_ui_theme()