Source

pida-patches / reenable-dbus-support

Full commit
# HG changeset patch
# Parent 402342fcfc30bf2028feff9756e66c386d229f62
diff --git a/pida/core/actions.py b/pida/core/actions.py
--- a/pida/core/actions.py
+++ b/pida/core/actions.py
@@ -83,6 +83,7 @@ class ActionsConfig(OptionsConfig):
     name = '%s.keys.json'
     accelerator_group = accelerator_group
     global_accelerator_group = global_accelerator_group
+    dbus_path = 'actions'
 
     def create(self):
         """
diff --git a/pida/core/options.py b/pida/core/options.py
--- a/pida/core/options.py
+++ b/pida/core/options.py
@@ -26,6 +26,7 @@ from shutil import rmtree
 
 from .base import BaseConfig
 from .environment import is_safe_mode, killsettings, settings_dir
+from .pdbus import DbusOptionsManager
 # locale
 from pida.core.locale import Locale
 locale = Locale('core')
@@ -194,14 +195,16 @@ class ExtraOptionItem(object):
 
 manager = OptionsManager()
 
-class OptionsConfig(BaseConfig):
+class OptionsConfig(BaseConfig, DbusOptionsManager):
 
     #enable reuse for keyboard shortcuts that need different name
     name = '%s.json'
     name_extra = "%s_extra_%s.json"
+    dbus_path = 'options'
 
     def __init__(self, service, *args, **kwargs):
         BaseConfig.__init__(self, service, *args, **kwargs)
+        DbusOptionsManager.__init__(self, service)
 
 
     def unload(self):