+
+ GTK app to sync InfiniTime watch with PinePhone
+
diff --git a/org.gnome.siglo.json b/org.gnome.siglo.json
index 4d7388e..ac12890 100644
--- a/org.gnome.siglo.json
+++ b/org.gnome.siglo.json
@@ -5,9 +5,11 @@
"sdk" : "org.gnome.Sdk",
"command" : "siglo",
"finish-args" : [
+ "--allow=bluetooth",
"--share=network",
"--share=ipc",
"--socket=fallback-x11",
+ "--socket=system-bus",
"--socket=wayland"
],
"cleanup" : [
@@ -46,6 +48,30 @@
"pip3 install --prefix=/app --no-cache-dir dbus-python"
]
},
+ {
+ "name": "python3-requests",
+ "buildsystem": "simple",
+ "build-options": {
+ "build-args": [
+ "--share=network"
+ ]
+ },
+ "build-commands": [
+ "pip3 install --prefix=/app --no-cache-dir requests"
+ ]
+ },
+ {
+ "name": "python3-pyxdg",
+ "buildsystem": "simple",
+ "build-options": {
+ "build-args": [
+ "--share=network"
+ ]
+ },
+ "build-commands": [
+ "pip3 install --prefix=/app --no-cache-dir pyxdg"
+ ]
+ },
{
"name" : "siglo",
"builddir" : true,
@@ -53,7 +79,8 @@
"sources" : [
{
"type" : "git",
- "url" : "file:///home/malex/Projects/siglo"
+ "url" : "https://github.com/alexr4535/siglo",
+ "tag" : "v0.6.2"
}
]
}
diff --git a/src/config.py b/src/config.py
index 4666499..3544065 100644
--- a/src/config.py
+++ b/src/config.py
@@ -1,12 +1,12 @@
import configparser
+import xdg.BaseDirectory
from pathlib import Path
class config:
# Class constants
default_config = {"mode": "singleton", "deploy_type": "quick"}
- home_dir = str(Path.home())
- config_dir = home_dir + "/.config/siglo"
+ config_dir = xdg.BaseDirectory.xdg_config_home
config_file = config_dir + "/siglo.ini"
def load_defaults(self):