changeset 2684:a7529543bbb1

core: fixed package name for Android
author Goffi <goffi@goffi.org>
date Fri, 05 Oct 2018 13:42:06 +0200
parents 38af118a7d74
children eb69ec549d05
files sat/core/constants.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat/core/constants.py	Wed Oct 03 20:38:10 2018 +0200
+++ b/sat/core/constants.py	Fri Oct 05 13:42:06 2018 +0200
@@ -174,7 +174,7 @@
     if (
         BaseDirectory
     ):  # skipped when xdg module is not available (should not happen in backend)
-        if "org.salutatoi.cagou.cagou" in BaseDirectory.__file__:
+        if "org.salutatoi.cagou" in BaseDirectory.__file__:
             # FIXME: hack to make config read from the right location on Android
             # TODO: fix it in a more proper way
 
@@ -186,8 +186,8 @@
 
             BaseDirectory = None
             DEFAULT_CONFIG = {
-                "local_dir": "/data/data/org.salutatoi.cagou.cagou/app",
-                "media_dir": "/data/data/org.salutatoi.cagou.cagou/files/app/media",
+                "local_dir": "/data/data/org.salutatoi.cagou/app",
+                "media_dir": "/data/data/org.salutatoi.cagou/files/app/media",
                 # FIXME: temporary location for downloads, need to call API properly
                 "downloads_dir": os.path.join(
                     Environment.getExternalStoragePublicDirectory(
@@ -199,7 +199,7 @@
                 "log_dir": "%(local_dir)s",
             }
             CONFIG_FILES = [
-                "/data/data/org.salutatoi.cagou.cagou/files/app/android/"
+                "/data/data/org.salutatoi.cagou/files/app/android/"
                 + APP_NAME_FILE
                 + ".conf"
             ]