Bug 509802

Summary: Notification when plugging in USB device garbled
Product: [Plasma] plasmashell Reporter: John Veness <john.kde>
Component: Disks & Devices widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, kde, kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: KDED showing strange message
Result of "dbus-monitor --pcap > log.txt"

Description John Veness 2025-09-22 20:57:30 UTC
Created attachment 185168 [details]
KDED showing strange message

SUMMARY
I hope this is the correct product for this bug - the notification has a title of "KDED" so I'm guessing so! (Incidentally, that jargon should maybe not be user-facing, but I guess that should be a separate bug).

When I plug in a certain USB device, namely a wireless receiver for Xbox 360 gamepads, the notification that appears is not quite as expected.

STEPS TO REPRODUCE
1. Start a Plasma session
2. Plug in a Microsoft Xbox 360 wireless controller receiver
3. Look at the notification that appears

OBSERVED RESULT
Notification says: "©Microsoft Xbox 360 Wireless Receiver for Windows has been plugged in."

EXPECTED RESULT
Notification says: "©Microsoft Xbox 360 Wireless Receiver for Windows has been plugged in."

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250920
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
dmesg shows "Manufacturer: ©Microsoft" and "Product: Xbox 360 Wireless Receiver for Windows" so I'm guessing these two strings are combined, but for some reason a "Â" has been added before the "©".
Comment 1 David Edmundson 2025-09-24 09:00:16 UTC
I need to know what the notification sends, can you run:

dbus-monitor --pcap > log.txt

plug in the device, get the garbled notification, then hit control+c in the terminal and upload log.txt here
Comment 2 John Veness 2025-09-24 18:53:15 UTC
Created attachment 185224 [details]
Result of "dbus-monitor --pcap > log.txt"
Comment 3 David Edmundson 2025-09-25 09:35:19 UTC
Pasting the relevant bit inline:

("System Notifications", uint32 0, "drive-removable-media-usb", "USB Device Detected", "©Microsoft Xbox 360 Wireless Receiver for Windows has been plugged in.", @as [], {"desktop-entry": <"org.kde.kded6">, "urgency": <0>, "x-kde-appname": <"plasma_workspace">, "x-kde-eventId": <"deviceAdded">}, -1)

The notification code is displaying things as received, the problem lies in the code emitting the notification or lower.