summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaotian Wu <[email protected]>2023-10-02 20:10:55 +0800
committerraveit65 <[email protected]>2023-10-07 19:55:00 +0200
commit5a5e8bf6520af810a4a880af815e0fca6a37c821 (patch)
tree222343f28be5abd65a980d9fd1aaad01fc5894a1
parent672df567a7d2ae499c4b707c102263932a64db3e (diff)
downloadmate-settings-daemon-5a5e8bf6520af810a4a880af815e0fca6a37c821.tar.bz2
mate-settings-daemon-5a5e8bf6520af810a4a880af815e0fca6a37c821.tar.xz
rfkill: allow another message bus connection to claim the bus name.
-rw-r--r--plugins/rfkill/msd-rfkill-manager.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/rfkill/msd-rfkill-manager.c b/plugins/rfkill/msd-rfkill-manager.c
index fbe74fb..397bb0e 100644
--- a/plugins/rfkill/msd-rfkill-manager.c
+++ b/plugins/rfkill/msd-rfkill-manager.c
@@ -66,9 +66,8 @@ struct MsdRfkillManagerPrivate
#define MSD_RFKILL_DBUS_PATH MSD_DBUS_PATH "/Rfkill"
static const gchar introspection_xml[] =
-"<node>"
+"<node name='/org/mate/SettingsDaemon/Rfkill'>"
" <interface name='org.mate.SettingsDaemon.Rfkill'>"
-" <annotation name='org.freedesktop.DBus.GLib.CSymbol' value='msd_rfkill_manager'/>"
" <property name='AirplaneMode' type='b' access='readwrite'/>"
" <property name='HardwareAirplaneMode' type='b' access='read'/>"
" <property name='HasAirplaneMode' type='b' access='read'/>"
@@ -493,7 +492,7 @@ on_bus_gotten (GObject *source_object,
manager->priv->name_id = g_bus_own_name_on_connection (connection,
MSD_RFKILL_DBUS_NAME,
- G_BUS_NAME_OWNER_FLAGS_NONE,
+ G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT,
NULL,
NULL,
NULL,