Repository navigation
fix(notifications): name the iPhone app in GNOME popups, not Tether - #342
Open
fernando2393 wants to merge 1 commit into
Open
fernando2393 wants to merge 1 commit into
fernando2393 wants to merge 1 commit into
Conversation
GNOME Shell titles a notification with the name of the app it resolves the sender to, and the desktop-entry hint resolves every popup to tether-gtk. So on GNOME every mirrored notification read "Tether", whatever app it came from; KDE already showed the app through x-kde-display-appname. When the server is gnome-shell and the popup comes from an iPhone app (it has a bundle id), send the app's name as the notification's app name and leave out desktop-entry. GNOME then titles it "Instagram" and groups each iPhone app on its own. The popup's icon also goes out as the app icon (libnotify >= 0.8.4), which GNOME draws, greyed, in the header; without it the header shows a generic icon. Tether's own popups (files, errors, discovery) and every other server keep today's identity. The Messages popup built from MAP now carries the Messages bundle id like the ANCS ones, so it reads "Messages" too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Problem
On GNOME every mirrored notification is titled Tether, whatever iPhone app sent it. GNOME Shell (
notificationDaemon.js,_getApp) resolves the sender through thedesktop-entryhint, which is alwaystether-gtk, and the source title is that app's name. KDE already shows the iPhone app thanks tox-kde-display-appname; GNOME ignores that hint.Change
In
set_identity(), when the server isgnome-shell(asked per notification, like the inline-reply capability) and the popup comes from an iPhone app (it has a bundle id):notify_notification_set_app_name),notify_notification_set_app_icon, libnotify >= 0.8.4, compiled out before that), anddesktop-entry.GNOME then titles the popup with the app name ("Instagram") and draws the app icon, greyed like every other app's, in the small header. Each iPhone app gets its own group in the notification list. Without the app icon, the header shows GNOME's generic application icon: libnotify sends a notification's icon as the image, not the app icon.
Unchanged: Tether's own popups (file arrivals, reply errors, discovery warnings) and every non-GNOME server still send
desktop-entry. The MAP-based Messages popup now carriescom.apple.MobileSMSlike the ANCS ones, so it reads "Messages" too. That field only drives the launcher and the mute action, and Messages has neither.Trade-off
On GNOME, iPhone popups are no longer covered by GNOME's per-app settings for Tether (Settings › Notifications › Tether). Tether's own controls still apply (desktop popups on/off, per-app mute), as does GNOME's Do Not Disturb.
Testing
Pairs with #341 (real app icons): together, GNOME popups show the app's name and real icon. The two merge cleanly in either order.
🤖 Generated with Claude Code