Skip to content

Prefer the live device name when labeling Bluetooth devices - #10191

Open
njos-444-navelin wants to merge 1 commit into
omacom:quattrofrom
njos-444-navelin:fix-bluetooth-panel-rename
Open

Prefer the live device name when labeling Bluetooth devices#10191
njos-444-navelin wants to merge 1 commit into
omacom:quattrofrom
njos-444-navelin:fix-bluetooth-panel-rename

Conversation

@njos-444-navelin

Copy link
Copy Markdown

Summary

  • Renaming a Bluetooth device never showed up in the panel — not
    after restarting the bar or shell, not after rebooting.
  • deviceLabel favored device.deviceName over device.name.
    deviceName mirrors BlueZ's Name property, which is set once
    from the device's advertisement and persisted to BlueZ's own
    on-disk device record — it never changes. device.name mirrors
    BlueZ's Alias, the property a rename actually writes.
  • Swaps the priority so the label follows the Alias, with
    deviceName kept as a fallback for the (rare) case where name
    is unset.

Test plan

  • Updated test/shell.d/bluetooth-test.sh, which previously asserted
    the old priority, to cover both the rename-wins and the
    deviceName-fallback cases.
  • bash test/shell.d/bluetooth-test.sh passes.

🤖 Generated with Claude Code

deviceLabel favored device.deviceName over device.name. deviceName
mirrors BlueZ's Name property, which is set once from the device's
advertisement and persisted to BlueZ's own on-disk device record — it
never changes, not even across a shell restart or reboot. name mirrors
BlueZ's Alias, the property a rename actually writes. Swap the
priority so a rename reaches the label, and update the test that
encoded the old priority.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@njos-444-navelin
njos-444-navelin force-pushed the fix-bluetooth-panel-rename branch from a98e0a5 to ffd37c0 Compare September 4, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant