]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/config/load.py
.desktop files should not be executable (#815)
[waydroid.git] / tools / config / load.py
index 6826c213876967d5589deed958378102692c8eb6..12978d3ca3c4fcd9b880bc063750dabe7ffc1933 100644 (file)
@@ -26,25 +26,9 @@ def load(args):
                           " default value from config: {}".format(cfg['waydroid'][key]))
             del cfg["waydroid"][key]
 
-    return cfg
-
-def load_session():
-    config_path = tools.config.session_defaults["config_path"]
-    cfg = configparser.ConfigParser()
-    if os.path.isfile(config_path):
-        cfg.read(config_path)
-
-    if "session" not in cfg:
-        cfg["session"] = {}
-
-    for key in tools.config.session_defaults:
-        if key in tools.config.session_config_keys and key not in cfg["session"]:
-            cfg["session"][key] = str(tools.config.session_defaults[key])
-
-        if key not in tools.config.session_config_keys and key in cfg["session"]:
-            logging.debug("Ignored unconfigurable and possibly outdated"
-                          " default value from config: {}".format(cfg['session'][key]))
-            del cfg["session"][key]
+    if "properties" not in cfg:
+        cfg["properties"] = {}
+    # no default values for property override
 
     return cfg