diff cagou/core/cagou_main.py @ 381:eb3f622d8791

android: create/clean a temporary directory on startup: directory returned by tempfiles on Android is actually the root directory of the application, so it is not cleaned. To work around that a `/tmp` directory inside it is now created, and cleaned on startup if it already exists.
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 20:47:17 +0100
parents 4d660b252487
children 6dacaf81339a
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Tue Feb 04 20:47:17 2020 +0100
+++ b/cagou/core/cagou_main.py	Tue Feb 04 20:47:17 2020 +0100
@@ -462,6 +462,9 @@
                     resync()
             self.contact_lists.fill()
 
+    def getConfig(self, section, name, default=None):
+        return config.getConfig(main_config, section, name, default)
+
     def onBridgeConnected(self):
         super(Cagou, self).onBridgeConnected()
         self.registerSignal("otrState", iface="plugin")