diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2020-06-08 21:35:48 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2020-06-08 21:35:48 +0200 |
commit | 1eeda6d8b289cf9866a0a19eb8a0471ce8e1f345 (patch) | |
tree | b5480784cd5b965e30465d8447e495ca9403e8d5 | |
parent | 22f6632c9e3a992d8cfeadee002940355bd04e45 (diff) | |
download | s2u-1eeda6d8b289cf9866a0a19eb8a0471ce8e1f345.tar s2u-1eeda6d8b289cf9866a0a19eb8a0471ce8e1f345.tar.gz s2u-1eeda6d8b289cf9866a0a19eb8a0471ce8e1f345.tar.bz2 s2u-1eeda6d8b289cf9866a0a19eb8a0471ce8e1f345.tar.xz s2u-1eeda6d8b289cf9866a0a19eb8a0471ce8e1f345.zip |
Fix dbus APIs
-rw-r--r-- | s2u.c | 12 | ||||
-rw-r--r-- | s2u.conf | 4 |
2 files changed, 8 insertions, 8 deletions
@@ -116,10 +116,10 @@ filter_function (DBusConnection * connection, /* message, interface, method */ if (dbus_message_is_signal (message, - "com.mandriva.user", + "org.mageia.user", "message") && strcmp (dbus_message_get_path (message), - "/com/mandriva/user") == 0) { + "/org/mageia/user") == 0) { gchar* args[] = { "/usr/bin/xauth", @@ -139,7 +139,7 @@ filter_function (DBusConnection * connection, return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_signal (message, - "com.mandriva.user", + "org.mageia.user", "updatemenu")) { g_print("s2u: updatemenu signal received.\n"); @@ -148,7 +148,7 @@ filter_function (DBusConnection * connection, return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_signal (message, - "com.mandriva.user", + "org.mageia.user", "security_notification")) { /* msec */ char *string; @@ -170,7 +170,7 @@ filter_function (DBusConnection * connection, dbus_error_free(&error); return DBUS_HANDLER_RESULT_HANDLED; } else if (dbus_message_is_signal (message, - "com.mandriva.user", + "org.mageia.user", "custom_notification")) { /* msec */ char *string, *title; @@ -211,7 +211,7 @@ service_dbus_init (void) dbus_bus_add_match (dbus_connection, "type='signal'," - "interface='com.mandriva.user'", + "interface='org.mageia.user'", NULL); @@ -7,11 +7,11 @@ <!-- ../system.conf have denied everything, so we just punch some holes --> <policy user="root"> - <allow send_interface="com.mandriva.user"/> + <allow send_interface="org.mageia.user"/> </policy> <policy context="default"> - <deny send_interface="com.mandriva.user"/> + <deny send_interface="org.mageia.user"/> </policy> |