Skip to content

fix(notifications): name the iPhone app in GNOME popups, not Tether - #342

Open
fernando2393 wants to merge 1 commit into
zackb:mainfrom
fernando2393:pr/gnome-app-name
Open

fernando2393 wants to merge 1 commit into
zackb:mainfrom
fernando2393:pr/gnome-app-name

Conversation

@fernando2393

@fernando2393 fernando2393 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On GNOME every mirrored notification is titled Tether, whatever iPhone app sent it. GNOME Shell (notificationDaemon.js, _getApp) resolves the sender through the desktop-entry hint, which is always tether-gtk, and the source title is that app's name. KDE already shows the iPhone app thanks to x-kde-display-appname; GNOME ignores that hint.

Change

In set_identity(), when the server is gnome-shell (asked per notification, like the inline-reply capability) and the popup comes from an iPhone app (it has a bundle id):

  • send the app's name as the notification's app name (notify_notification_set_app_name),
  • send the popup's icon as the app icon too (notify_notification_set_app_icon, libnotify >= 0.8.4, compiled out before that), and
  • leave out desktop-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 carries com.apple.MobileSMS like 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

  • Suite passes (647); no new unit test, since the decision needs a live notification server.
  • By hand on GNOME 50.1 (libnotify 0.8.8): iPhone popups are titled with the app and show its icon in the header; checked against screenshots. Tether's own popups are unchanged.

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

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

No deployments
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