diff --git a/frontends/src/bridge/DBus.py b/frontends/src/bridge/DBus.py index 5d1ec1b1..1f9d1b18 100644 --- a/frontends/src/bridge/DBus.py +++ b/frontends/src/bridge/DBus.py @@ -20,9 +20,12 @@ along with this program. If not, see . """ from bridge_frontend import BridgeFrontend -import dbus, dbus.glib +import dbus from logging import debug, error +from dbus.mainloop.glib import DBusGMainLoop +DBusGMainLoop(set_as_default=True) + const_INT_PREFIX = "org.goffi.SAT" #Interface prefix const_ERROR_PREFIX = const_INT_PREFIX+".error" const_OBJ_PATH = '/org/goffi/SAT/bridge' diff --git a/src/bridge/bridge_constructor/dbus_frontend_template.py b/src/bridge/bridge_constructor/dbus_frontend_template.py index f1f5d9f2..02d084de 100644 --- a/src/bridge/bridge_constructor/dbus_frontend_template.py +++ b/src/bridge/bridge_constructor/dbus_frontend_template.py @@ -20,9 +20,12 @@ along with this program. If not, see . """ from bridge_frontend import BridgeFrontend -import dbus, dbus.glib +import dbus from logging import debug, error +from dbus.mainloop.glib import DBusGMainLoop +DBusGMainLoop(set_as_default=True) + const_INT_PREFIX = "org.goffi.SAT" #Interface prefix const_ERROR_PREFIX = const_INT_PREFIX+".error" const_OBJ_PATH = '/org/goffi/SAT/bridge' diff --git a/src/plugins/plugin_misc_text_commands.py b/src/plugins/plugin_misc_text_commands.py index 0d799b56..16d058b0 100755 --- a/src/plugins/plugin_misc_text_commands.py +++ b/src/plugins/plugin_misc_text_commands.py @@ -161,6 +161,9 @@ class TextCommands(): def cmd_parrot(self, mess_data, profile): """activate Parrot mode between 2 entities, in both directions.""" + #TODO: these commands must not be hardcoded, an interface should be made + # to allow plugins to register simple commands like this. + debug("Catched parrot command") try: