Repository navigation
feat(gtk): tray menu with Bluetooth connect/disconnect - #327
Merged
Merged
Conversation
The tray item had no menu, so switching Bluetooth off for the iPhone meant opening the window or running `tether --bt-enable off`. Disconnecting from the desktop's Bluetooth settings does not stick, because the iPhone reconnects straight away. Export a com.canonical.dbusmenu menu on the StatusNotifierItem with Show Tether, Connect/Disconnect <iPhone> and Quit. The Bluetooth item sends bt_set_enabled, the same as the Devices checkbox, so the bond is kept. It follows bt_status and is hidden while no iPhone is bonded. Left click still toggles the window. Co-Authored-By: Claude Opus 5.5 <[email protected]>
zackb
approved these changes
Nov 17, 2026
Owner
|
Great contributions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tray icon has no menu. Turning Bluetooth off for the iPhone means opening the window or running
tether --bt-enable off, and disconnecting from the desktop's Bluetooth settings doesn't stick, because the phone reconnects immediately.This exports a
com.canonical.dbusmenumenu for the StatusNotifierItem:bt_set_enabled, the same as the Devices checkbox, so the bond is kept. It followsbt_statusand is hidden while no iPhone is bonded.Left click still toggles the window as before.
Testing: Fedora 45, GNOME with the AppIndicator extension, iPhone. Disconnect stops the link and it stays down; Connect brings it back.
Note: adds three translatable strings.
clang-formatwasn't available, so formatting was checked by hand against.clang-format.