summaryrefslogtreecommitdiff
path: root/lib/bluetooth-settings-widget.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-01-20 12:19:44 +0100
committerBastien Nocera <hadess@hadess.net>2022-01-20 12:19:44 +0100
commitf5fae22865a781204d56d6c6adfcbac3867bae9b (patch)
treefaef5bf37521858dfac1097d91e6c999e0b91ab0 /lib/bluetooth-settings-widget.c
parent8692374650434f82bd728f7e61aa03198218478d (diff)
downloadgnome-bluetooth-f5fae22865a781204d56d6c6adfcbac3867bae9b.tar.gz
lib: Add separate string for Bluetooth LE services
Diffstat (limited to 'lib/bluetooth-settings-widget.c')
-rw-r--r--lib/bluetooth-settings-widget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 68023ea5..e6ae7233 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -790,7 +790,8 @@ authorize_service_callback (GDBusMethodInvocation *invocation,
return;
}
- if (g_strcmp0 (bluetooth_uuid_to_string (uuid), "HumanInterfaceDeviceService") != 0) {
+ if (g_strcmp0 (bluetooth_uuid_to_string (uuid), "HumanInterfaceDeviceService") != 0 &&
+ g_strcmp0 (bluetooth_uuid_to_string (uuid), "Human Interface Device") != 0) {
g_autofree char *msg = NULL;
msg = g_strdup_printf ("Rejecting service auth (%s) for %s: not HID",
uuid, g_dbus_proxy_get_object_path (device));