# HG changeset patch # User Goffi # Date 1538739726 -7200 # Node ID a7529543bbb1b2f58bdac2a4722fcc48b038d4f9 # Parent 38af118a7d7433e01f9de4f60a9d03d59b998057 core: fixed package name for Android diff -r 38af118a7d74 -r a7529543bbb1 sat/core/constants.py --- 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" ]