Repository navigation
fix(gtk): send results reach the desktop on GNOME - #354
Merged
Merged
Conversation
Send results ("No device is connected.", folders skipped, sent or
failed) were posted as a GNotification. GNOME only shows those for an
app id with a matching desktop file, and native installs ship
tether-gtk.desktop, not io.github.zackb.tether.desktop, so GNOME dropped
them all (org.gtk.Notifications answers InvalidApp). Only the Flatpak,
which renames the desktop file, showed them.
They now go to the notification server directly, with the
tether-gtk desktop entry, as the daemon's popups do. They are also shown
when the window is open but not focused, since a send started from a
file manager leaves the window behind it. A send that fails is titled
"File not sent".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Send results in the GTK app ("No device is connected.", "Folders can't be sent", the final sent/failed message) are posted as a
GNotification. GNOME only shows those for an app id that has a matching desktop file, and native installs shiptether-gtk.desktop, notio.github.zackb.tether.desktop, so GNOME drops every one of them:org.gtk.Notifications.AddNotificationanswersInvalidApp: The app by ID "io.github.zackb.tether" could not be found. Only the Flatpak, which renames the desktop file, shows them. A send started from a file manager with no phone connected therefore did nothing visible.They were also only shown while the window was hidden, so with the window open behind a file manager the result was a status-bar line nobody sees.
Change
org.freedesktop.Notifications.Notifydirectly, with thetether-gtkdesktop entry, the way the daemon's popups already do. Repeated results replace the previous one, as the fixed GNotification id did.Renaming the desktop file to the app id would also fix it, but it would break existing users' dock pins and the metainfo launchable, so I left that alone.
Testing
On Ubuntu 26.04 / GNOME 50, native build: with the iPhone app closed,
tether-gtk --send <file>now shows "File not sent / No device is connected."; before, nothing.update-pot.sh --checkandcheck-catalogs.shpass.🤖 Generated with Claude Code