Bluetooth name not shown (when it contains an ampersand [&]?)
I upgraded from Fedora 35 to Fedora 36 and now see a problem in the GNOME settings:
STR
Go to the GNOME Bluetooth window and have a device with an &
in it's name.
What happens
The name of the one headset I use is not visible in GNOME Settings…
bluetoothctl
has no problems showing it though:
$ bluetoothctl
Agent registered
[bluetooth]# devices
Device B0:67:2F:1B:**:** PX7 Bowers & Wilkins
Maybe the &
is breaking stuff here?
Anyway, I can still click on it and then it is shown/works as usual:
What should happen
Properly show a name
Notes
Already tried rebooting etc. no success.
Logs
Started with -v
and it showed me this:
11:01:23.0093 Bluetooth: DEBUG: Adding device 'B0:67:2F:1B:**:**' on adapter '/org/bluez/hci0' to list store
(gnome-control-center:129686): Gtk-WARNING **: 11:01:23.093: Failed to set text 'PX7 Bowers & Wilkins' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity ? escape ampersand as &
11:01:23.0093 Bluetooth: DEBUG: Saving device type Headphones for B0:67:2F:1B:**E4***:**
11:01:23.0093 Bluetooth: DEBUG: Adding device PX7 Bowers & Wilkins (/org/bluez/hci0/dev_B0_67_2F_1B_**E4***_**74***)
System
Fedora 36 Silverblue aka v36.20220512.1 (2022-05-12T20:00:12Z) gnome-control-center 42.1
Originally reported at Fedora Ask.
Edited by rugk