Skip to content

Linux + iPhone Continuity / iMessage / SMS

feat: "Send with Tether" UI and file manager integration

Zack Bartel4ec4bb39f5e2
diff --git a/po/cs.po b/po/cs.po
index 2ae672e..235a88d 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Czech\n"
@@ -46,6 +46,10 @@ msgstr "Načíst text ze vstupu a zkopírovat jej do místní schránky Waylandu
msgid "Send a file through tether."
msgstr "Odeslat soubor přes tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "S --send-file odeslat na jedno připojené zařízení (název nebo otisk)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Spustit proxy smyčku Native Messaging Host prohlížeče."
@@ -119,7 +123,9 @@ msgstr "Zamknout relaci, když iPhone opustí dosah: on nebo off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Uvolnit zprávy a kontakty, když je tento počítač zamčený nebo nečinný: on nebo off."
+msgstr ""
+"Uvolnit zprávy a kontakty, když je tento počítač zamčený nebo nečinný: on "
+"nebo off."
#: src/cli/main.cpp
msgid ""
@@ -605,12 +611,15 @@ msgstr "Zamykání při opuštění dosahu iPhonem je vypnuté."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Zprávy a kontakty budou uvolněny, když je tento počítač zamčený nebo nečinný."
+msgstr ""
+"Zprávy a kontakty budou uvolněny, když je tento počítač zamčený nebo nečinný."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Zprávy a kontakty zůstanou připojené, i když je tento počítač zamčený nebo nečinný."
+msgstr ""
+"Zprávy a kontakty zůstanou připojené, i když je tento počítač zamčený nebo "
+"nečinný."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -805,6 +814,16 @@ msgstr "Zpráva nebyla odeslána."
msgid "Could not read the daemon's state.\n"
msgstr "Nepodařilo se přečíst stav démona.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Žádné připojené zařízení s názvem {}. Spusťte 'tether status' a zobrazte je.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Název {} má více zařízení; zadejte místo něj jeho otisk.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Verze"
@@ -2155,6 +2174,14 @@ msgstr "Odesílání {}…"
msgid "({0} of {1})"
msgstr "({0} z {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Odeslat do…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Zrušit"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Démon není dostupný."
@@ -2163,10 +2190,6 @@ msgstr "Démon není dostupný."
msgid "Send File"
msgstr "Odeslat soubor"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Zrušit"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Odeslat"
@@ -2214,6 +2237,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Neznámé zařízení"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Složky nelze odeslat — vyberte místo nich soubory."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Není připojeno žádné zařízení."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Připojeno"
@@ -2564,6 +2595,14 @@ msgstr "Otevřít na této kartě"
msgid "Open the messages tab on this conversation"
msgstr "Otevřít kartu zpráv na této konverzaci"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Odeslat zadané soubory a při více připojených zařízeních se zeptat, kam"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "SOUBOR…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/de.po b/po/de.po
index a05cf69..6526ad2 100644
--- a/po/de.po
+++ b/po/de.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: German\n"
@@ -47,6 +47,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Eine Datei über tether senden."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Mit --send-file an ein verbundenes Gerät senden (Name oder Fingerabdruck)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Die Native-Messaging-Host-Proxyschleife des Browsers starten."
@@ -120,7 +124,9 @@ msgstr ""
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt oder inaktiv ist: on oder off."
+msgstr ""
+"Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt oder "
+"inaktiv ist: on oder off."
#: src/cli/main.cpp
msgid ""
@@ -608,12 +614,16 @@ msgstr "Sperren, wenn das iPhone außer Reichweite gerät, ist ausgeschaltet."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Nachrichten und Kontakte werden freigegeben, solange dieser Computer gesperrt oder inaktiv ist."
+msgstr ""
+"Nachrichten und Kontakte werden freigegeben, solange dieser Computer "
+"gesperrt oder inaktiv ist."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Nachrichten und Kontakte bleiben verbunden, auch wenn dieser Computer gesperrt oder inaktiv ist."
+msgstr ""
+"Nachrichten und Kontakte bleiben verbunden, auch wenn dieser Computer "
+"gesperrt oder inaktiv ist."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -814,6 +824,16 @@ msgstr "Die Nachricht wurde nicht gesendet."
msgid "Could not read the daemon's state.\n"
msgstr "Der Zustand des Daemons konnte nicht gelesen werden.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Kein verbundenes Gerät namens {}. Führen Sie 'tether status' aus, um sie anzuzeigen.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Mehrere Geräte heißen {}; geben Sie stattdessen den Fingerabdruck an.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Version"
@@ -2207,6 +2227,14 @@ msgstr "{} wird gesendet…"
msgid "({0} of {1})"
msgstr "({0} von {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Senden an…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Abbrechen"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Daemon nicht verfügbar."
@@ -2215,10 +2243,6 @@ msgstr "Daemon nicht verfügbar."
msgid "Send File"
msgstr "Datei senden"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Abbrechen"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Senden"
@@ -2267,6 +2291,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Unbekanntes Gerät"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Ordner können nicht gesendet werden — wählen Sie stattdessen Dateien."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Kein Gerät verbunden."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Verbunden"
@@ -2515,7 +2547,9 @@ msgstr "Mitteilungen freigeben"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt oder inaktiv ist"
+msgstr ""
+"Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt oder "
+"inaktiv ist"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2618,6 +2652,14 @@ msgstr "In diesem Tab öffnen"
msgid "Open the messages tab on this conversation"
msgstr "Den Nachrichten-Tab bei dieser Unterhaltung öffnen"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Die angegebenen Dateien senden und bei mehreren verbundenen Geräten nachfragen, an welches"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "DATEI…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/es.po b/po/es.po
index a8aa7e0..4c4fe6f 100644
--- a/po/es.po
+++ b/po/es.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: Spanish\n"
@@ -46,6 +46,10 @@ msgstr "Leer texto de la entrada y copiarlo al portapapeles local de Wayland."
msgid "Send a file through tether."
msgstr "Enviar un archivo a través de tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Con --send-file, enviar a un dispositivo conectado (nombre o huella)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Iniciar el bucle proxy del Native Messaging Host del navegador."
@@ -122,7 +126,9 @@ msgstr "Bloquear la sesión cuando el iPhone quede fuera de alcance: on u off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado o inactivo: on u off."
+msgstr ""
+"Liberar mensajes y contactos mientras este ordenador está bloqueado o "
+"inactivo: on u off."
#: src/cli/main.cpp
msgid ""
@@ -612,12 +618,16 @@ msgstr "El bloqueo cuando el iPhone queda fuera de alcance está desactivado."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Los mensajes y contactos se liberarán mientras este ordenador esté bloqueado o inactivo."
+msgstr ""
+"Los mensajes y contactos se liberarán mientras este ordenador esté bloqueado "
+"o inactivo."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Los mensajes y contactos siguen conectados mientras este ordenador está bloqueado o inactivo."
+msgstr ""
+"Los mensajes y contactos siguen conectados mientras este ordenador está "
+"bloqueado o inactivo."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -812,6 +822,16 @@ msgstr "El mensaje no se envió."
msgid "Could not read the daemon's state.\n"
msgstr "No se pudo leer el estado del demonio.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "No hay ningún dispositivo conectado llamado {}. Ejecute 'tether status' para verlos.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Hay más de un dispositivo llamado {}; indique su huella en su lugar.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Versión"
@@ -2191,6 +2211,14 @@ msgstr "Enviando {}…"
msgid "({0} of {1})"
msgstr "({0} de {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Enviar a…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Cancelar"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Daemon no disponible."
@@ -2199,10 +2227,6 @@ msgstr "Daemon no disponible."
msgid "Send File"
msgstr "Enviar archivo"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Cancelar"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Enviar"
@@ -2251,6 +2275,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Dispositivo desconocido"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "No se pueden enviar carpetas — elija archivos en su lugar."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "No hay ningún dispositivo conectado."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Conectado"
@@ -2499,7 +2531,9 @@ msgstr "Liberar notificaciones"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado o inactivo"
+msgstr ""
+"Liberar mensajes y contactos mientras este ordenador está bloqueado o "
+"inactivo"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2602,6 +2636,14 @@ msgstr "Abrir en esta pestaña"
msgid "Open the messages tab on this conversation"
msgstr "Abrir la pestaña de mensajes en esta conversación"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Enviar los archivos indicados y preguntar a qué dispositivo cuando haya varios conectados"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "ARCHIVO…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/fr.po b/po/fr.po
index bbe66a5..4b98cf6 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: French\n"
@@ -47,6 +47,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Envoyer un fichier via tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Avec --send-file, envoyer à un seul appareil connecté (nom ou empreinte)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Démarrer la boucle proxy Native Messaging Host du navigateur."
@@ -122,7 +126,9 @@ msgstr "Verrouiller la session quand l'iPhone sort de portée : on ou off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Libérer les messages et les contacts quand cet ordinateur est verrouillé ou inactif : on ou off."
+msgstr ""
+"Libérer les messages et les contacts quand cet ordinateur est verrouillé ou "
+"inactif : on ou off."
#: src/cli/main.cpp
msgid ""
@@ -612,12 +618,16 @@ msgstr "Le verrouillage quand l'iPhone sort de portée est désactivé."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Les messages et les contacts seront libérés quand cet ordinateur est verrouillé ou inactif."
+msgstr ""
+"Les messages et les contacts seront libérés quand cet ordinateur est "
+"verrouillé ou inactif."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Les messages et les contacts restent connectés quand cet ordinateur est verrouillé ou inactif."
+msgstr ""
+"Les messages et les contacts restent connectés quand cet ordinateur est "
+"verrouillé ou inactif."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -817,6 +827,16 @@ msgstr "Le message n'a pas été envoyé."
msgid "Could not read the daemon's state.\n"
msgstr "Impossible de lire l'état du démon.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Aucun appareil connecté nommé {}. Lancez 'tether status' pour les voir.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Plusieurs appareils s'appellent {} ; indiquez plutôt son empreinte.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Version"
@@ -2195,6 +2215,14 @@ msgstr "Envoi de {}…"
msgid "({0} of {1})"
msgstr "({0} sur {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Envoyer à…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Annuler"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Démon indisponible."
@@ -2203,10 +2231,6 @@ msgstr "Démon indisponible."
msgid "Send File"
msgstr "Envoyer un fichier"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Annuler"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Envoyer"
@@ -2257,6 +2281,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Appareil inconnu"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Les dossiers ne peuvent pas être envoyés — choisissez plutôt des fichiers."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Aucun appareil connecté."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Connecté"
@@ -2505,7 +2537,9 @@ msgstr "Libérer les notifications"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Libérer les messages et les contacts quand cet ordinateur est verrouillé ou inactif"
+msgstr ""
+"Libérer les messages et les contacts quand cet ordinateur est verrouillé ou "
+"inactif"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2608,6 +2642,14 @@ msgstr "Ouvrir sur cet onglet"
msgid "Open the messages tab on this conversation"
msgstr "Ouvrir l'onglet Messages sur cette conversation"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Envoyer les fichiers indiqués, en demandant l'appareil lorsque plusieurs sont connectés"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "FICHIER…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/it.po b/po/it.po
index 1fc7eb8..5a6d7e3 100644
--- a/po/it.po
+++ b/po/it.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Italian\n"
@@ -47,6 +47,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Invia un file tramite tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Con --send-file, invia a un solo dispositivo connesso (nome o impronta)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Avvia il ciclo proxy Native Messaging Host del browser."
@@ -123,7 +127,9 @@ msgstr "Blocca la sessione quando l'iPhone esce dalla portata: on oppure off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato o inattivo: on o off."
+msgstr ""
+"Rilascia messaggi e contatti mentre questo computer è bloccato o inattivo: "
+"on o off."
#: src/cli/main.cpp
msgid ""
@@ -611,12 +617,16 @@ msgstr "Il blocco quando l'iPhone esce dalla portata è disattivato."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Messaggi e contatti verranno rilasciati mentre questo computer è bloccato o inattivo."
+msgstr ""
+"Messaggi e contatti verranno rilasciati mentre questo computer è bloccato o "
+"inattivo."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Messaggi e contatti restano connessi mentre questo computer è bloccato o inattivo."
+msgstr ""
+"Messaggi e contatti restano connessi mentre questo computer è bloccato o "
+"inattivo."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -812,6 +822,16 @@ msgstr "Il messaggio non è stato inviato."
msgid "Could not read the daemon's state.\n"
msgstr "Impossibile leggere lo stato del demone.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Nessun dispositivo connesso di nome {}. Esegui 'tether status' per vederli.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Più dispositivi si chiamano {}; indica invece la sua impronta.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Versione"
@@ -2186,6 +2206,14 @@ msgstr "Invio di {}…"
msgid "({0} of {1})"
msgstr "({0} di {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Invia a…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "A_nnulla"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Daemon non disponibile."
@@ -2194,10 +2222,6 @@ msgstr "Daemon non disponibile."
msgid "Send File"
msgstr "Invia file"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "A_nnulla"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Invia"
@@ -2246,6 +2270,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Dispositivo sconosciuto"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Le cartelle non possono essere inviate — scegli dei file."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Nessun dispositivo connesso."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Connesso"
@@ -2496,7 +2528,8 @@ msgstr "Rilascia notifiche"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato o inattivo"
+msgstr ""
+"Rilascia messaggi e contatti mentre questo computer è bloccato o inattivo"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2598,6 +2631,14 @@ msgstr "Apri su questa scheda"
msgid "Open the messages tab on this conversation"
msgstr "Apri la scheda messaggi su questa conversazione"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Invia i file indicati, chiedendo a quale dispositivo se ne sono connessi diversi"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "FILE…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/ja.po b/po/ja.po
index f532e97..12d6adf 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Japanese\n"
@@ -47,6 +47,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "tether 経由でファイルを送信します。"
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "--send-file と併用し、接続中の 1 台のデバイスに送信します (名前またはフィンガープリント)。"
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "ブラウザの Native Messaging Host プロキシループを開始します。"
@@ -120,7 +124,9 @@ msgstr "iPhone が範囲外になったらセッションをロックします:
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "このコンピュータがロック中またはアイドル状態の間、メッセージと連絡先を解放します: on または off。"
+msgstr ""
+"このコンピュータがロック中またはアイドル状態の間、メッセージと連絡先を解放し"
+"ます: on または off。"
#: src/cli/main.cpp
msgid ""
@@ -597,12 +603,16 @@ msgstr "iPhone が範囲外になったときのロックは無効です。"
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "このコンピュータがロック中またはアイドル状態の間、メッセージと連絡先は解放されます。"
+msgstr ""
+"このコンピュータがロック中またはアイドル状態の間、メッセージと連絡先は解放さ"
+"れます。"
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "このコンピュータがロック中またはアイドル状態でも、メッセージと連絡先は接続されたままです。"
+msgstr ""
+"このコンピュータがロック中またはアイドル状態でも、メッセージと連絡先は接続さ"
+"れたままです。"
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -798,6 +808,16 @@ msgstr "メッセージは送信されませんでした。"
msgid "Could not read the daemon's state.\n"
msgstr "デーモンの状態を読み取れませんでした。\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "{} という名前の接続中のデバイスはありません。'tether status' で確認してください。\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "{} という名前のデバイスが複数あります。代わりにフィンガープリントを指定してください。\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "バージョン"
@@ -2155,6 +2175,14 @@ msgstr "{} を送信しています…"
msgid "({0} of {1})"
msgstr "({1} 件中 {0} 件)"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "送信先…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "キャンセル(_C)"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "デーモンを利用できません。"
@@ -2163,10 +2191,6 @@ msgstr "デーモンを利用できません。"
msgid "Send File"
msgstr "ファイルを送信"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "キャンセル(_C)"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "送信(_S)"
@@ -2215,6 +2239,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "不明なデバイス"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "フォルダは送信できません。ファイルを選択してください。"
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "接続中のデバイスはありません。"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "接続済み"
@@ -2561,6 +2593,14 @@ msgstr "このタブで開く"
msgid "Open the messages tab on this conversation"
msgstr "この会話でメッセージタブを開く"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "指定したファイルを送信します。複数のデバイスが接続中の場合は送信先を尋ねます"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "ファイル…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/ko.po b/po/ko.po
index a5e838e..4a71ab7 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Korean\n"
@@ -46,6 +46,10 @@ msgstr "입력에서 텍스트를 읽어 로컬 Wayland 클립보드에 복사
msgid "Send a file through tether."
msgstr "tether를 통해 파일을 보냅니다."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "--send-file와 함께 연결된 기기 하나로 보냅니다(이름 또는 지문)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "브라우저의 Native Messaging Host 프록시 루프를 시작합니다."
@@ -118,7 +122,9 @@ msgstr "iPhone이 범위를 벗어나면 세션을 잠급니다: on 또는 off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 메시지와 연락처를 해제합니다: on 또는 off."
+msgstr ""
+"이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 메시지와 연락처를 해제합니다: on 또"
+"는 off."
#: src/cli/main.cpp
msgid ""
@@ -596,7 +602,9 @@ msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 메시지와
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태여도 메시지와 연락처는 연결된 상태로 유지됩니다."
+msgstr ""
+"이 컴퓨터가 잠겨 있거나 유휴 상태여도 메시지와 연락처는 연결된 상태로 유지됩"
+"니다."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -791,6 +799,16 @@ msgstr "메시지가 전송되지 않았습니다."
msgid "Could not read the daemon's state.\n"
msgstr "데몬의 상태를 읽을 수 없습니다.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "{}(이)라는 연결된 기기가 없습니다. 'tether status'를 실행하여 확인하십시오.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "{}(이)라는 기기가 여러 대입니다. 대신 지문을 지정하십시오.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "버전"
@@ -2128,6 +2146,14 @@ msgstr "{} 보내는 중…"
msgid "({0} of {1})"
msgstr "({1}개 중 {0}개)"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "보낼 대상…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "취소(_C)"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "데몬을 사용할 수 없습니다."
@@ -2136,10 +2162,6 @@ msgstr "데몬을 사용할 수 없습니다."
msgid "Send File"
msgstr "파일 보내기"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "취소(_C)"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "보내기(_S)"
@@ -2186,6 +2208,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "알 수 없는 기기"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "폴더는 보낼 수 없습니다. 대신 파일을 선택하십시오."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "연결된 기기가 없습니다."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "연결됨"
@@ -2530,6 +2560,14 @@ msgstr "이 탭에서 열기"
msgid "Open the messages tab on this conversation"
msgstr "이 대화에서 메시지 탭 열기"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "지정한 파일을 보내고, 여러 기기가 연결되어 있으면 어느 기기로 보낼지 묻습니다"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "파일…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/nl.po b/po/nl.po
index 20174e2..499a9bd 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Dutch\n"
@@ -47,6 +47,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Een bestand via tether versturen."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Met --send-file naar één verbonden apparaat versturen (naam of vingerafdruk)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "De Native Messaging Host-proxylus van de browser starten."
@@ -121,7 +125,9 @@ msgstr ""
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld of inactief is: on of off."
+msgstr ""
+"Berichten en contacten vrijgeven zolang deze computer vergrendeld of "
+"inactief is: on of off."
#: src/cli/main.cpp
msgid ""
@@ -609,12 +615,16 @@ msgstr "Vergrendelen wanneer de iPhone buiten bereik raakt staat uit."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Berichten en contacten worden vrijgegeven zolang deze computer vergrendeld of inactief is."
+msgstr ""
+"Berichten en contacten worden vrijgegeven zolang deze computer vergrendeld "
+"of inactief is."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Berichten en contacten blijven verbonden als deze computer vergrendeld of inactief is."
+msgstr ""
+"Berichten en contacten blijven verbonden als deze computer vergrendeld of "
+"inactief is."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -810,6 +820,16 @@ msgstr "Het bericht is niet verstuurd."
msgid "Could not read the daemon's state.\n"
msgstr "Kon de status van de daemon niet lezen.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Geen verbonden apparaat met de naam {}. Voer 'tether status' uit om ze te zien.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Meer dan één apparaat heet {}; geef in plaats daarvan de vingerafdruk op.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Versie"
@@ -2179,6 +2199,14 @@ msgstr "{} versturen…"
msgid "({0} of {1})"
msgstr "({0} van {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Versturen naar…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Annuleren"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Daemon niet beschikbaar."
@@ -2187,10 +2215,6 @@ msgstr "Daemon niet beschikbaar."
msgid "Send File"
msgstr "Bestand versturen"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Annuleren"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Versturen"
@@ -2239,6 +2263,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Onbekend apparaat"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Mappen kunnen niet worden verstuurd — kies in plaats daarvan bestanden."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Geen apparaat verbonden."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Verbonden"
@@ -2486,7 +2518,9 @@ msgstr "Meldingen vrijgeven"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld of inactief is"
+msgstr ""
+"Berichten en contacten vrijgeven zolang deze computer vergrendeld of "
+"inactief is"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2588,6 +2622,14 @@ msgstr "Op dit tabblad openen"
msgid "Open the messages tab on this conversation"
msgstr "Het tabblad Berichten op dit gesprek openen"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "De opgegeven bestanden versturen en vragen naar welk apparaat als er meerdere verbonden zijn"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "BESTAND…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/pl.po b/po/pl.po
index 307832f..d9f315e 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Polish\n"
@@ -47,6 +47,10 @@ msgstr "Wczytaj tekst z wejścia i skopiuj go do lokalnego schowka Waylanda."
msgid "Send a file through tether."
msgstr "Wyślij plik przez tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Z --send-file wysyła do jednego połączonego urządzenia (nazwa lub odcisk)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Uruchom pętlę proxy Native Messaging Host przeglądarki."
@@ -120,7 +124,9 @@ msgstr "Zablokuj sesję, gdy iPhone znajdzie się poza zasięgiem: on lub off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany lub bezczynny: on lub off."
+msgstr ""
+"Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany lub "
+"bezczynny: on lub off."
#: src/cli/main.cpp
msgid ""
@@ -611,12 +617,16 @@ msgstr "Blokowanie, gdy iPhone znajdzie się poza zasięgiem, jest wyłączone."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Wiadomości i kontakty będą zwalniane, gdy ten komputer jest zablokowany lub bezczynny."
+msgstr ""
+"Wiadomości i kontakty będą zwalniane, gdy ten komputer jest zablokowany lub "
+"bezczynny."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Wiadomości i kontakty pozostają połączone, gdy ten komputer jest zablokowany lub bezczynny."
+msgstr ""
+"Wiadomości i kontakty pozostają połączone, gdy ten komputer jest zablokowany "
+"lub bezczynny."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -812,6 +822,16 @@ msgstr "Wiadomość nie została wysłana."
msgid "Could not read the daemon's state.\n"
msgstr "Nie udało się odczytać stanu demona.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Brak połączonego urządzenia o nazwie {}. Uruchom 'tether status', aby je zobaczyć.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Więcej niż jedno urządzenie nazywa się {}; podaj zamiast tego jego odcisk.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Wersja"
@@ -2175,6 +2195,14 @@ msgstr "Wysyłanie {}…"
msgid "({0} of {1})"
msgstr "({0} z {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Wyślij do…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Anuluj"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Demon niedostępny."
@@ -2183,10 +2211,6 @@ msgstr "Demon niedostępny."
msgid "Send File"
msgstr "Wyślij plik"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Anuluj"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Wyślij"
@@ -2234,6 +2258,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Nieznane urządzenie"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Folderów nie można wysyłać — wybierz zamiast nich pliki."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Brak połączonego urządzenia."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Połączono"
@@ -2483,7 +2515,9 @@ msgstr "Zwolnij powiadomienia"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany lub bezczynny"
+msgstr ""
+"Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany lub "
+"bezczynny"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2585,6 +2619,14 @@ msgstr "Otwórz na tej karcie"
msgid "Open the messages tab on this conversation"
msgstr "Otwórz kartę wiadomości na tej rozmowie"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Wyślij podane pliki, pytając o urządzenie, gdy połączonych jest kilka"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "PLIK…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 40d254f..1ce16f0 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Brazilian Portuguese\n"
@@ -48,6 +48,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Enviar um arquivo pelo tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Com --send-file, enviar para um dispositivo conectado (nome ou impressão digital)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Iniciar o laço de proxy do Native Messaging Host do navegador."
@@ -121,7 +125,9 @@ msgstr "Bloquear a sessão quando o iPhone sair do alcance: on ou off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado ou ocioso: on ou off."
+msgstr ""
+"Liberar mensagens e contatos enquanto este computador estiver bloqueado ou "
+"ocioso: on ou off."
#: src/cli/main.cpp
msgid ""
@@ -606,12 +612,16 @@ msgstr "O bloqueio quando o iPhone sai do alcance está desativado."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Mensagens e contatos serão liberados enquanto este computador estiver bloqueado ou ocioso."
+msgstr ""
+"Mensagens e contatos serão liberados enquanto este computador estiver "
+"bloqueado ou ocioso."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Mensagens e contatos continuam conectados enquanto este computador estiver bloqueado ou ocioso."
+msgstr ""
+"Mensagens e contatos continuam conectados enquanto este computador estiver "
+"bloqueado ou ocioso."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -807,6 +817,16 @@ msgstr "A mensagem não foi enviada."
msgid "Could not read the daemon's state.\n"
msgstr "Não foi possível ler o estado do daemon.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Nenhum dispositivo conectado chamado {}. Execute 'tether status' para vê-los.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Mais de um dispositivo se chama {}; informe a impressão digital dele.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Versão"
@@ -2178,6 +2198,14 @@ msgstr "Enviando {}…"
msgid "({0} of {1})"
msgstr "({0} de {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Enviar para…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Cancelar"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Daemon indisponível."
@@ -2186,10 +2214,6 @@ msgstr "Daemon indisponível."
msgid "Send File"
msgstr "Enviar arquivo"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Cancelar"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Enviar"
@@ -2238,6 +2262,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Dispositivo desconhecido"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Pastas não podem ser enviadas — escolha arquivos em vez disso."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Nenhum dispositivo conectado."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Conectado"
@@ -2484,7 +2516,9 @@ msgstr "Liberar notificações"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado ou ocioso"
+msgstr ""
+"Liberar mensagens e contatos enquanto este computador estiver bloqueado ou "
+"ocioso"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2586,6 +2620,14 @@ msgstr "Abrir nesta aba"
msgid "Open the messages tab on this conversation"
msgstr "Abrir a aba de mensagens nesta conversa"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Enviar os arquivos indicados, perguntando para qual dispositivo quando houver vários conectados"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "ARQUIVO…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/ru.po b/po/ru.po
index e077cfa..b4ee8e3 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Russian\n"
@@ -48,6 +48,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Отправить файл через tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "С --send-file отправить на одно подключённое устройство (имя или отпечаток)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Запустить прокси-цикл Native Messaging Host браузера."
@@ -120,7 +124,9 @@ msgstr "Блокировать сеанс, когда iPhone выходит из
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован или простаивает: on или off."
+msgstr ""
+"Освобождать сообщения и контакты, пока этот компьютер заблокирован или "
+"простаивает: on или off."
#: src/cli/main.cpp
msgid ""
@@ -611,12 +617,16 @@ msgstr "Блокировка при выходе iPhone из зоны дейст
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Сообщения и контакты будут освобождаться, пока этот компьютер заблокирован или простаивает."
+msgstr ""
+"Сообщения и контакты будут освобождаться, пока этот компьютер заблокирован "
+"или простаивает."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Сообщения и контакты остаются подключёнными, пока этот компьютер заблокирован или простаивает."
+msgstr ""
+"Сообщения и контакты остаются подключёнными, пока этот компьютер "
+"заблокирован или простаивает."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -812,6 +822,16 @@ msgstr "Сообщение не отправлено."
msgid "Could not read the daemon's state.\n"
msgstr "Не удалось прочитать состояние демона.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Нет подключённого устройства с именем {}. Запустите 'tether status', чтобы увидеть их.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Имя {} носят несколько устройств; укажите вместо него отпечаток.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Версия"
@@ -2177,6 +2197,14 @@ msgstr "Отправка {}…"
msgid "({0} of {1})"
msgstr "({0} из {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Отправить на…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "О_тменить"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Демон недоступен."
@@ -2185,10 +2213,6 @@ msgstr "Демон недоступен."
msgid "Send File"
msgstr "Отправить файл"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "О_тменить"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Отправить"
@@ -2236,6 +2260,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Неизвестное устройство"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Папки отправить нельзя — выберите вместо них файлы."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Нет подключённых устройств."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Подключено"
@@ -2485,7 +2517,9 @@ msgstr "Освободить уведомления"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован или простаивает"
+msgstr ""
+"Освобождать сообщения и контакты, пока этот компьютер заблокирован или "
+"простаивает"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2587,6 +2621,14 @@ msgstr "Открыть на этой вкладке"
msgid "Open the messages tab on this conversation"
msgstr "Открыть вкладку сообщений на этой переписке"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Отправить указанные файлы, спросив устройство, если подключено несколько"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "ФАЙЛ…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/sv.po b/po/sv.po
index f0ba617..adaa944 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Swedish\n"
@@ -47,6 +47,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Skicka en fil via tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "Med --send-file, skicka till en ansluten enhet (namn eller fingeravtryck)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Starta webbläsarens proxyslinga för Native Messaging Host."
@@ -120,7 +124,9 @@ msgstr "Lås sessionen när iPhonen hamnar utom räckhåll: on eller off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Släpp meddelanden och kontakter medan den här datorn är låst eller inaktiv: on eller off."
+msgstr ""
+"Släpp meddelanden och kontakter medan den här datorn är låst eller inaktiv: "
+"on eller off."
#: src/cli/main.cpp
msgid ""
@@ -606,12 +612,15 @@ msgstr "Låsning när iPhonen hamnar utom räckhåll är avstängd."
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Meddelanden och kontakter släpps medan den här datorn är låst eller inaktiv."
+msgstr ""
+"Meddelanden och kontakter släpps medan den här datorn är låst eller inaktiv."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Meddelanden och kontakter förblir anslutna medan den här datorn är låst eller inaktiv."
+msgstr ""
+"Meddelanden och kontakter förblir anslutna medan den här datorn är låst "
+"eller inaktiv."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -805,6 +814,16 @@ msgstr "Meddelandet skickades inte."
msgid "Could not read the daemon's state.\n"
msgstr "Kunde inte läsa daemonens tillstånd.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Ingen ansluten enhet heter {}. Kör 'tether status' för att se dem.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Fler än en enhet heter {}; ange dess fingeravtryck i stället.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Version"
@@ -2157,6 +2176,14 @@ msgstr "Skickar {}…"
msgid "({0} of {1})"
msgstr "({0} av {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Skicka till…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Avbryt"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Demonen är otillgänglig."
@@ -2165,10 +2192,6 @@ msgstr "Demonen är otillgänglig."
msgid "Send File"
msgstr "Skicka fil"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Avbryt"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Skicka"
@@ -2216,6 +2239,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Okänd enhet"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Mappar kan inte skickas — välj filer i stället."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Ingen enhet är ansluten."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Ansluten"
@@ -2462,7 +2493,8 @@ msgstr "Släpp aviseringar"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Släpp meddelanden och kontakter medan den här datorn är låst eller inaktiv"
+msgstr ""
+"Släpp meddelanden och kontakter medan den här datorn är låst eller inaktiv"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2564,6 +2596,14 @@ msgstr "Öppna på den här fliken"
msgid "Open the messages tab on this conversation"
msgstr "Öppna meddelandefliken på den här konversationen"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Skicka angivna filer och fråga vilken enhet när flera är anslutna"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "FIL…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/tether.pot b/po/tether.pot
index c83ce3c..2592323 100644
--- a/po/tether.pot
+++ b/po/tether.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether 0.2.38\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -46,6 +46,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr ""
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr ""
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr ""
@@ -742,6 +746,16 @@ msgstr ""
msgid "Could not read the daemon's state.\n"
msgstr ""
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr ""
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr ""
+
#: src/cli/main.cpp
msgid "Version"
msgstr ""
@@ -1957,6 +1971,14 @@ msgstr ""
msgid "({0} of {1})"
msgstr ""
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr ""
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr ""
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr ""
@@ -1965,10 +1987,6 @@ msgstr ""
msgid "Send File"
msgstr ""
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr ""
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr ""
@@ -2007,6 +2025,14 @@ msgstr ""
msgid "Unknown Device"
msgstr ""
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr ""
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr ""
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr ""
@@ -2324,6 +2350,14 @@ msgstr ""
msgid "Open the messages tab on this conversation"
msgstr ""
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr ""
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr ""
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/tr.po b/po/tr.po
index 3b6e79a..856d524 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Turkish\n"
@@ -46,6 +46,10 @@ msgstr "Girişten metin oku ve yerel Wayland panosuna kopyala."
msgid "Send a file through tether."
msgstr "tether üzerinden bir dosya gönder."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "--send-file ile bağlı tek bir aygıta gönder (ad veya parmak izi)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Tarayıcının Native Messaging Host vekil döngüsünü başlat."
@@ -118,7 +122,9 @@ msgstr "iPhone menzil dışına çıkınca oturumu kilitle: on veya off."
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Bu bilgisayar kilitli veya boştayken mesajları ve kişileri bırak: on veya off."
+msgstr ""
+"Bu bilgisayar kilitli veya boştayken mesajları ve kişileri bırak: on veya "
+"off."
#: src/cli/main.cpp
msgid ""
@@ -804,6 +810,16 @@ msgstr "Mesaj gönderilmedi."
msgid "Could not read the daemon's state.\n"
msgstr "Arka plandaki tetherd sürecinin durumu okunamadı.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "{} adında bağlı aygıt yok. Görmek için 'tether status' çalıştırın.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "{} adında birden fazla aygıt var; bunun yerine parmak izini verin.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Sürüm"
@@ -2154,6 +2170,14 @@ msgstr "{} gönderiliyor…"
msgid "({0} of {1})"
msgstr "({1} içinden {0})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Şuraya gönder…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Vazgeç"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Arka plan hizmeti kullanılamıyor."
@@ -2162,10 +2186,6 @@ msgstr "Arka plan hizmeti kullanılamıyor."
msgid "Send File"
msgstr "Dosya gönder"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Vazgeç"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Gönder"
@@ -2211,6 +2231,14 @@ msgstr "Eşleşmiş hiçbir aygıt bağlı değil. Aygıtı açın ve aynı ağa
msgid "Unknown Device"
msgstr "Bilinmeyen aygıt"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Klasörler gönderilemez — bunun yerine dosya seçin."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Bağlı aygıt yok."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Bağlandı"
@@ -2561,6 +2589,14 @@ msgstr "Bu sekmede aç"
msgid "Open the messages tab on this conversation"
msgstr "Mesajlar sekmesini bu konuşmada aç"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Verilen dosyaları gönder, birden fazla aygıt bağlıysa hangisine gönderileceğini sor"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "DOSYA…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/uk.po b/po/uk.po
index d61ce10..f4be8e5 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Ukrainian\n"
@@ -49,6 +49,10 @@ msgstr ""
msgid "Send a file through tether."
msgstr "Надіслати файл через tether."
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "З --send-file надіслати на один підключений пристрій (назва або відбиток)."
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "Запустити проксі-цикл Native Messaging Host браузера."
@@ -122,7 +126,9 @@ msgstr "Блокувати сеанс, коли iPhone виходить із з
msgid ""
"Release messages and contacts while this computer is locked or idle: on or "
"off."
-msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано або неактивний: on або off."
+msgstr ""
+"Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано або "
+"неактивний: on або off."
#: src/cli/main.cpp
msgid ""
@@ -611,12 +617,16 @@ msgstr "Блокування, коли iPhone виходить із зони д
#: src/cli/main.cpp
msgid ""
"Messages and contacts will be released while this computer is locked or idle."
-msgstr "Повідомлення й контакти звільнятимуться, поки цей комп'ютер заблоковано або неактивний."
+msgstr ""
+"Повідомлення й контакти звільнятимуться, поки цей комп'ютер заблоковано або "
+"неактивний."
#: src/cli/main.cpp
msgid ""
"Messages and contacts stay connected while this computer is locked or idle."
-msgstr "Повідомлення й контакти лишаються під'єднаними, поки цей комп'ютер заблоковано або неактивний."
+msgstr ""
+"Повідомлення й контакти лишаються під'єднаними, поки цей комп'ютер "
+"заблоковано або неактивний."
#: src/cli/main.cpp
msgid "Use map, pbap, ancs, or all.\n"
@@ -812,6 +822,16 @@ msgstr "Повідомлення не надіслано."
msgid "Could not read the daemon's state.\n"
msgstr "Не вдалося прочитати стан демона.\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "Немає підключеного пристрою з назвою {}. Запустіть 'tether status', щоб побачити їх.\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "Назву {} мають кілька пристроїв; вкажіть натомість його відбиток.\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "Версія"
@@ -2172,6 +2192,14 @@ msgstr "Надсилання {}…"
msgid "({0} of {1})"
msgstr "({0} з {1})"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "Надіслати на…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "_Скасувати"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "Демон недоступний."
@@ -2180,10 +2208,6 @@ msgstr "Демон недоступний."
msgid "Send File"
msgstr "Надіслати файл"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "_Скасувати"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "_Надіслати"
@@ -2231,6 +2255,14 @@ msgstr ""
msgid "Unknown Device"
msgstr "Невідомий пристрій"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "Теки надіслати не можна — виберіть замість них файли."
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "Немає підключених пристроїв."
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "Під'єднано"
@@ -2480,7 +2512,9 @@ msgstr "Звільнити сповіщення"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Release messages and contacts while this computer is locked or idle"
-msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано або неактивний"
+msgstr ""
+"Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано або "
+"неактивний"
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid ""
@@ -2582,6 +2616,14 @@ msgstr "Відкрити на цій вкладці"
msgid "Open the messages tab on this conversation"
msgstr "Відкрити вкладку повідомлень на цій розмові"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "Надіслати вказані файли, запитавши пристрій, якщо підключено кілька"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "ФАЙЛ…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 67cc21f..d541fa7 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-18 15:06-0700\n"
+"POT-Creation-Date: 2026-10-18 15:38-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Simplified Chinese\n"
@@ -46,6 +46,10 @@ msgstr "从输入读取文本并复制到本地 Wayland 剪贴板。"
msgid "Send a file through tether."
msgstr "通过 tether 发送文件。"
+#: src/cli/main.cpp
+msgid "With --send-file, send to one connected device (name or fingerprint)."
+msgstr "与 --send-file 配合使用,发送到一台已连接的设备(名称或指纹)。"
+
#: src/cli/main.cpp
msgid "Start the browser Native Messaging Host proxy loop."
msgstr "启动浏览器的 Native Messaging Host 代理循环。"
@@ -775,6 +779,16 @@ msgstr "信息未发送。"
msgid "Could not read the daemon's state.\n"
msgstr "无法读取守护进程的状态。\n"
+#: src/cli/main.cpp
+#, c++-format
+msgid "No connected device named {}. Run 'tether status' to see them.\n"
+msgstr "没有名为 {} 的已连接设备。运行 'tether status' 查看。\n"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "More than one device is named {}; pass its fingerprint instead.\n"
+msgstr "有多台设备名为 {};请改为指定其指纹。\n"
+
#: src/cli/main.cpp
msgid "Version"
msgstr "版本"
@@ -2079,6 +2093,14 @@ msgstr "正在发送 {}……"
msgid "({0} of {1})"
msgstr "(第 {0} 个,共 {1} 个)"
+#: src/gtk/devices_view.cpp
+msgid "Send to…"
+msgstr "发送到…"
+
+#: src/gtk/devices_view.cpp
+msgid "_Cancel"
+msgstr "取消(_C)"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Daemon unavailable."
msgstr "守护进程不可用。"
@@ -2087,10 +2109,6 @@ msgstr "守护进程不可用。"
msgid "Send File"
msgstr "发送文件"
-#: src/gtk/devices_view.cpp
-msgid "_Cancel"
-msgstr "取消(_C)"
-
#: src/gtk/devices_view.cpp
msgid "_Send"
msgstr "发送(_S)"
@@ -2135,6 +2153,14 @@ msgstr "没有已配对的设备处于连接状态。请开机并连接到同一
msgid "Unknown Device"
msgstr "未知设备"
+#: src/gtk/devices_view.cpp
+msgid "Folders can't be sent — pick files instead."
+msgstr "无法发送文件夹 —— 请改为选择文件。"
+
+#: src/gtk/devices_view.cpp
+msgid "No device is connected."
+msgstr "没有已连接的设备。"
+
#: src/gtk/devices_view.cpp src/tui/devices.cpp
msgid "Connected"
msgstr "已连接"
@@ -2474,6 +2500,14 @@ msgstr "在此标签页中打开"
msgid "Open the messages tab on this conversation"
msgstr "在此会话中打开信息标签页"
+#: src/gtk/main.cpp
+msgid "Send the given files, asking which device when several are connected"
+msgstr "发送指定文件;连接了多台设备时询问发送到哪台"
+
+#: src/gtk/main.cpp
+msgid "FILE…"
+msgstr "文件…"
+
#: src/gtk/messages_view.cpp src/gtk/tray.cpp src/tui/main.cpp
#, c++-format
msgid "{} unread message"
diff --git a/src/cli/main.cpp b/src/cli/main.cpp
index c5c54eb..c983005 100644
--- a/src/cli/main.cpp
+++ b/src/cli/main.cpp
@@ -9,6 +9,7 @@
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
+#include <set>
#include <sstream>
#include <string>
#include <strings.h>
@@ -184,6 +185,7 @@ static const Opt kOptions[] = {
{"-g, --get-clipboard", N_("Retrieve the current Wayland clipboard text.")},
{"-s, --set-clipboard", N_("Take string input and copy it to the local Wayland clipboard.")},
{"-f, --send-file", N_("Send a file through tether.")},
+ {"--to <name>", N_("With --send-file, send to one connected device (name or fingerprint).")},
{"-n, --native-host", N_("Start the browser Native Messaging Host proxy loop.")},
{"-d, --discover", N_("Scan the local network for tetherd instances via mDNS.")},
{"--host <ip>", N_("Connect over TCP to daemon ip instead of UNIX Socket.")},
@@ -1182,6 +1184,36 @@ static nlohmann::json state_snapshot(tether::Client& client) {
return snapshot;
}
+// Matches a paired, connected peer by fingerprint or case-insensitive name.
+static bool resolve_send_target(tether::Client& client, const std::string& wanted, std::string& fingerprint) {
+ nlohmann::json snap;
+ try {
+ snap = state_snapshot(client);
+ } catch (const std::exception&) {
+ debug::log(ERR, _("Could not read the daemon's state.\n"));
+ return false;
+ }
+
+ std::set<std::string> matches;
+ for (const auto& c : snap.value("connected_clients", nlohmann::json::array())) {
+ const std::string print = c.value("fingerprint", "");
+ if (!c.value("paired", false) || print.empty())
+ continue;
+ if (print == wanted || strcasecmp(c.value("device_name", "").c_str(), wanted.c_str()) == 0)
+ matches.insert(print);
+ }
+
+ if (matches.size() == 1) {
+ fingerprint = *matches.begin();
+ return true;
+ }
+ if (matches.empty())
+ debug::log(ERR, _("No connected device named {}. Run 'tether status' to see them.\n"), wanted);
+ else
+ debug::log(ERR, _("More than one device is named {}; pass its fingerprint instead.\n"), wanted);
+ return false;
+}
+
static int print_status(tether::Client& client) {
nlohmann::json snap;
try {
@@ -1326,7 +1358,7 @@ int main(int argc, char* argv[]) {
return 0;
}
- std::string action, arg_val, arg_val2, host = "";
+ std::string action, arg_val, arg_val2, host = "", send_to;
bool explicit_pair = false;
int port = 5134;
int timeout_ms = 3000;
@@ -1494,6 +1526,9 @@ int main(int argc, char* argv[]) {
action = "file";
if (i + 1 < argc && argv[i + 1][0] != '-')
arg_val = argv[++i];
+ } else if (arg == "--to") {
+ if (i + 1 < argc)
+ send_to = argv[++i];
} else if (arg == "-n" || arg == "--native-host") {
action = "native";
} else if (arg == "-s" || arg == "--set-clipboard") {
@@ -1631,8 +1666,11 @@ int main(int argc, char* argv[]) {
return 1;
}
} else if (action == "file") {
+ std::string target;
+ if (!send_to.empty() && !resolve_send_target(client, send_to, target))
+ return 1;
debug::log(INFO, "Sending {}...", arg_val);
- if (!client.send_file(arg_val, err)) {
+ if (!client.send_file(arg_val, err, target)) {
debug::log(ERR, _("Transfer Failed: {}"), err);
return 1;
}
diff --git a/src/core/include/tether/client.hpp b/src/core/include/tether/client.hpp
index 56118cf..731d46f 100644
--- a/src/core/include/tether/client.hpp
+++ b/src/core/include/tether/client.hpp
@@ -22,7 +22,8 @@ namespace tether {
// Base Level payload loop
bool send(const std::string& payload);
std::string send_and_wait(const std::string& payload);
- bool send_file(const std::string& path, std::string& err_out);
+ // target is a peer fingerprint; empty sends to every connected peer.
+ bool send_file(const std::string& path, std::string& err_out, const std::string& target = "");
std::string get_peer_fingerprint() const;
ssize_t read(char* buf, size_t count);
diff --git a/src/core/include/tether/net.hpp b/src/core/include/tether/net.hpp
index 9ab37f1..5966de9 100644
--- a/src/core/include/tether/net.hpp
+++ b/src/core/include/tether/net.hpp
@@ -25,7 +25,7 @@ namespace tether {
// Simple registry for active clients to support broadcasting
void register_client_fd(int fd);
- void register_client_ssl(int fd, SSL* ssl);
+ void register_client_ssl(int fd, SSL* ssl, const std::string& fingerprint);
void unregister_client_fd(int fd);
void broadcast_message(const std::string& msg, int exclude_fd = -1);
void register_local_subscriber(int fd);
@@ -45,6 +45,8 @@ namespace tether {
void otp_publish(const std::string& code, const std::string& sender_domain = "", int exclude_fd = -1);
void record_received_file(const std::filesystem::path& path, size_t bytes_written);
size_t broadcast_tcp_message(const std::string& msg, int exclude_fd = -1);
+ // Writes to the trusted peer with this fingerprint; 0 when it is not connected.
+ size_t send_tcp_message_to(const std::string& fingerprint, const std::string& msg);
inline constexpr size_t CLIPBOARD_IMAGE_MAX_BYTES = 32u * 1024 * 1024;
diff --git a/src/core/src/client.cpp b/src/core/src/client.cpp
index 6f1ed86..795c5b1 100644
--- a/src/core/src/client.cpp
+++ b/src/core/src/client.cpp
@@ -36,6 +36,16 @@ namespace tether {
return "";
}
+ std::string describe_send_error(const std::string& protocol_error) {
+ if (protocol_error == "unauthorized")
+ return "Unauthorized. Device not paired.";
+ if (protocol_error == "no_connected_mobile_client")
+ return "No connected iPhone client is available.";
+ if (protocol_error == "target_not_connected")
+ return "That device is not connected.";
+ return protocol_error;
+ }
+
} // namespace
Client::Client() {}
@@ -349,7 +359,7 @@ namespace tether {
return response;
}
- bool Client::send_file(const std::string& path, std::string& err_out) {
+ bool Client::send_file(const std::string& path, std::string& err_out, const std::string& target) {
if (path.empty() || !std::filesystem::exists(path)) {
err_out = "Invalid or missing file path.";
return false;
@@ -374,16 +384,12 @@ namespace tether {
j_start["filename"] = filename;
j_start["size"] = file_size;
j_start["transfer_id"] = transfer_id;
+ if (!target.empty())
+ j_start["target"] = target;
std::string s_resp = send_and_wait(j_start.dump() + "\n");
if (std::string protocol_error = extract_protocol_error(s_resp); !protocol_error.empty()) {
- if (protocol_error == "unauthorized") {
- err_out = "Unauthorized. Device not paired.";
- } else if (protocol_error == "no_connected_mobile_client") {
- err_out = "No connected iPhone client is available.";
- } else {
- err_out = protocol_error;
- }
+ err_out = describe_send_error(protocol_error);
return false;
}
@@ -402,14 +408,12 @@ namespace tether {
j_chunk["chunk_index"] = chunk_idx++;
j_chunk["transfer_id"] = transfer_id;
j_chunk["data"] = tether::base64_encode(buffer.data(), bytes_read);
+ if (!target.empty())
+ j_chunk["target"] = target;
std::string chunk_resp = send_and_wait(j_chunk.dump() + "\n");
if (std::string protocol_error = extract_protocol_error(chunk_resp); !protocol_error.empty()) {
- if (protocol_error == "no_connected_mobile_client") {
- err_out = "No connected iPhone client is available.";
- } else {
- err_out = protocol_error;
- }
+ err_out = describe_send_error(protocol_error);
return false;
}
}
@@ -417,6 +421,8 @@ namespace tether {
nlohmann::json j_end;
j_end["command"] = "file_end";
j_end["transfer_id"] = transfer_id;
+ if (!target.empty())
+ j_end["target"] = target;
std::string resp = send_and_wait(j_end.dump() + "\n");
try {
@@ -425,12 +431,7 @@ namespace tether {
return true;
}
if (r.value("command", "") == "error") {
- std::string message = r.value("message", "Transfer sequence explicitly rejected externally.");
- if (message == "no_connected_mobile_client") {
- err_out = "No connected iPhone client is available.";
- } else {
- err_out = message;
- }
+ err_out = describe_send_error(r.value("message", "Transfer sequence explicitly rejected externally."));
return false;
}
} catch (...) {
diff --git a/src/core/src/net.cpp b/src/core/src/net.cpp
index 4fff430..65d612c 100644
--- a/src/core/src/net.cpp
+++ b/src/core/src/net.cpp
@@ -59,6 +59,7 @@ namespace tether {
int fd;
SSL* ssl; // nullptr for plain unix clients
bool clipboard_images = false; // announced in hello
+ std::string fingerprint; // trusted peer's certificate, empty for unix clients
};
// Global list of active connected sessions
@@ -93,9 +94,9 @@ namespace tether {
active_sessions[fd] = {fd, nullptr};
}
- void register_client_ssl(int fd, SSL* ssl) {
+ void register_client_ssl(int fd, SSL* ssl, const std::string& fingerprint) {
std::lock_guard<std::mutex> lock(g_sessions_mutex);
- active_sessions[fd] = {fd, ssl};
+ active_sessions[fd] = {fd, ssl, false, fingerprint};
}
void unregister_client_fd(int fd) {
@@ -949,6 +950,21 @@ namespace tether {
return recipients;
}
+ size_t send_tcp_message_to(const std::string& fingerprint, const std::string& msg) {
+ std::string packet = msg;
+ if (!packet.empty() && packet.back() != '\n')
+ packet += '\n';
+
+ std::lock_guard<std::mutex> lock(g_sessions_mutex);
+ for (auto const& [fd, session] : active_sessions) {
+ if (session.ssl && session.fingerprint == fingerprint) {
+ robust_ssl_write(session.ssl, packet.c_str(), packet.size());
+ return 1;
+ }
+ }
+ return 0;
+ }
+
std::vector<std::string> clipboard_image_messages(const std::string& png, const std::string& kind) {
constexpr size_t CHUNK_BYTES = 512 * 1024;
if (png.size() > CLIPBOARD_IMAGE_MAX_BYTES) {
@@ -1629,41 +1645,30 @@ namespace tether {
std::string payload = "{\"status\":\"ok\"}\n";
write_plain_packet(client_fd, payload);
continue;
- } else if (j.contains("command") && j["command"] == "file_start") {
- if (broadcast_tcp_message(msg) == 0) {
+ } else if (j.contains("command") &&
+ (j["command"] == "file_start" || j["command"] == "file_chunk" ||
+ j["command"] == "file_end")) {
+ // "target" picks one peer by fingerprint; without it every peer gets the file.
+ // ponytail: target is forwarded as-is, receivers ignore unknown keys.
+ const std::string target = j.value("target", "");
+ const size_t sent = target.empty() ? broadcast_tcp_message(msg) : send_tcp_message_to(target, msg);
+ if (sent == 0) {
nlohmann::json resp;
resp["command"] = "error";
- resp["message"] = "no_connected_mobile_client";
+ resp["message"] = target.empty() ? "no_connected_mobile_client" : "target_not_connected";
std::string payload = resp.dump() + "\n";
write_plain_packet(client_fd, payload);
continue;
}
- } else if (j.contains("command") && j["command"] == "file_chunk") {
- if (broadcast_tcp_message(msg) == 0) {
+ if (j["command"] == "file_end") {
nlohmann::json resp;
- resp["command"] = "error";
- resp["message"] = "no_connected_mobile_client";
- std::string payload = resp.dump() + "\n";
- write_plain_packet(client_fd, payload);
- continue;
- }
- } else if (j.contains("command") && j["command"] == "file_end") {
- if (broadcast_tcp_message(msg) == 0) {
- nlohmann::json resp;
- resp["command"] = "error";
- resp["message"] = "no_connected_mobile_client";
+ resp["command"] = "file_status";
+ resp["transfer_id"] = j["transfer_id"];
+ resp["status"] = "success";
std::string payload = resp.dump() + "\n";
write_plain_packet(client_fd, payload);
continue;
}
-
- nlohmann::json resp;
- resp["command"] = "file_status";
- resp["transfer_id"] = j["transfer_id"];
- resp["status"] = "success";
- std::string payload = resp.dump() + "\n";
- write_plain_packet(client_fd, payload);
- continue;
} else if (j.contains("command") && j["command"] == "accept_device" && j.contains("fingerprint")) {
const std::string print = j.value("fingerprint", "");
const std::string fallback_name = j.value("device_name", "Paired Device");
@@ -1714,14 +1719,15 @@ namespace tether {
} else if (j.contains("command") && j["command"] == "send_file" && j.contains("path")) {
std::string path = j["path"];
const std::string operation_id = j.value("operation_id", std::string{});
- std::thread([path, operation_id]() {
+ const std::string target = j.value("target", std::string{});
+ std::thread([path, operation_id, target]() {
nlohmann::json resp;
resp["command"] = "file_send_complete";
set_operation_id(resp, operation_id);
Client local;
if (local.connect("", 0)) { // connects correctly via unix socket
std::string err;
- bool ok = local.send_file(path, err);
+ bool ok = local.send_file(path, err, target);
resp["success"] = ok;
resp["message"] =
ok ? tr_format(_("Sent {}"), std::filesystem::path(path).filename().string())
@@ -2414,7 +2420,7 @@ namespace tether {
remote_it->second.fingerprint = fingerprint;
// Only a trusted session joins the broadcast registry.
- register_client_ssl(client_fd, ssl_it->second);
+ register_client_ssl(client_fd, ssl_it->second, fingerprint);
nlohmann::json connected_event{{"command", "client_connected"},
{"fingerprint", fingerprint},
diff --git a/src/gtk/CMakeLists.txt b/src/gtk/CMakeLists.txt
index f63b522..25b9915 100644
--- a/src/gtk/CMakeLists.txt
+++ b/src/gtk/CMakeLists.txt
@@ -51,6 +51,10 @@ endif()
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/tether-gtk.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
+# Dolphin's right-click "Send with Tether".
+install(FILES tether-send.desktop
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/kio/servicemenus)
+
# Software centers (GNOME Software, Discover, Flathub) read this listing.
install(FILES com.tether.desktop.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
diff --git a/src/gtk/devices_view.cpp b/src/gtk/devices_view.cpp
index 4dc2e85..d197bea 100644
--- a/src/gtk/devices_view.cpp
+++ b/src/gtk/devices_view.cpp
@@ -12,6 +12,7 @@
#include <tether/crypto.hpp>
#include <tether/discovery.hpp>
#include <tether/version.hpp>
+#include <utility>
#include <vector>
namespace tether::ui {
@@ -102,9 +103,12 @@ namespace tether::ui {
GtkWidget* lbl_welcome_wifi = nullptr;
GtkWidget* lbl_welcome_bt = nullptr;
- // Files waiting to go to the phone, front is in flight.
+ // Files waiting to go out, front is in flight.
GtkWidget* dropzone = nullptr;
- std::deque<std::filesystem::path> send_queue;
+ std::deque<std::pair<std::filesystem::path, std::string>> send_queue; // path, target fp
+ // --send files that arrived before the first state_snapshot said who is connected.
+ bool snapshot_seen = false;
+ std::vector<std::filesystem::path> pending_send;
size_t send_batch_total = 0;
size_t send_failed = 0;
size_t send_skipped = 0;
@@ -699,7 +703,7 @@ namespace tether::ui {
void start_next_send() {
if (g_devices.send_queue.empty())
return;
- const std::filesystem::path& path = g_devices.send_queue.front();
+ const auto& [path, target] = g_devices.send_queue.front();
// TRANSLATORS: {} is a file name.
std::string status = tether::tr_format(_("Sending {}…"), path.filename().string());
if (g_devices.send_batch_total > 1) {
@@ -711,12 +715,76 @@ namespace tether::ui {
nlohmann::json j;
j["command"] = "send_file";
j["path"] = path.string();
+ if (!target.empty())
+ j["target"] = target;
daemon_send(j);
}
// skipped counts items that came in with the batch but are not sendable
// files, so the final status can admit they were dropped.
- void queue_files(std::vector<std::filesystem::path> paths, size_t skipped = 0) {
+ // The window may be hidden in the tray when a file manager starts a send.
+ void notify_if_hidden(const std::string& message) {
+ GtkWidget* window = main_window();
+ if (window && gtk_widget_get_visible(window))
+ return;
+ GNotification* notification = g_notification_new("Tether");
+ g_notification_set_body(notification, message.c_str());
+ g_application_send_notification(g_application_get_default(), "tether-send", notification);
+ g_object_unref(notification);
+ }
+
+ // Peers report no platform, so the icon is guessed from the name.
+ const char* device_icon(const std::string& name) {
+ if (name.find("iPad") != std::string::npos)
+ return "tablet-symbolic";
+ if (name.find("iPhone") != std::string::npos)
+ return "phone-symbolic";
+ return "computer-symbolic";
+ }
+
+ // Returns the chosen fingerprint, empty when cancelled.
+ std::string pick_send_target(const std::vector<std::pair<std::string, std::string>>& devices) {
+ GtkWidget* window = main_window();
+ GtkWindow* parent = window && gtk_widget_get_visible(window) ? GTK_WINDOW(window) : nullptr;
+ GtkWidget* dialog = gtk_dialog_new_with_buttons(
+ _("Send to…"), parent, GTK_DIALOG_MODAL, _("_Cancel"), GTK_RESPONSE_CANCEL, nullptr);
+ gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
+
+ GtkWidget* list = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12);
+ gtk_container_set_border_width(GTK_CONTAINER(list), 18);
+ for (size_t i = 0; i < devices.size(); ++i) {
+ GtkWidget* content = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
+ gtk_box_pack_start(GTK_BOX(content),
+ gtk_image_new_from_icon_name(device_icon(devices[i].second), GTK_ICON_SIZE_DIALOG),
+ FALSE,
+ FALSE,
+ 0);
+ gtk_box_pack_start(GTK_BOX(content), gtk_label_new(devices[i].second.c_str()), FALSE, FALSE, 0);
+ GtkWidget* button = gtk_button_new();
+ gtk_container_add(GTK_CONTAINER(button), content);
+ gtk_widget_set_tooltip_text(button, devices[i].second.c_str());
+ g_object_set_data(G_OBJECT(button), "index", GINT_TO_POINTER(static_cast<gint>(i)));
+ g_signal_connect(button,
+ "clicked",
+ G_CALLBACK(+[](GtkWidget* button, gpointer dialog) {
+ gtk_dialog_response(GTK_DIALOG(dialog),
+ GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "index")));
+ }),
+ dialog);
+ gtk_box_pack_start(GTK_BOX(list), button, TRUE, TRUE, 0);
+ }
+ gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), list, TRUE, TRUE, 0);
+ gtk_widget_show_all(dialog);
+
+ const gint response = gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+ if (response < 0 || static_cast<size_t>(response) >= devices.size())
+ return "";
+ return devices[static_cast<size_t>(response)].first;
+ }
+
+ // An empty target sends to every connected device.
+ void queue_files(std::vector<std::filesystem::path> paths, const std::string& target, size_t skipped = 0) {
if (paths.empty())
return;
if (!daemon_connected()) {
@@ -734,7 +802,7 @@ namespace tether::ui {
g_devices.send_skipped += skipped;
}
for (auto& path : paths)
- g_devices.send_queue.push_back(std::move(path));
+ g_devices.send_queue.emplace_back(std::move(path), target);
if (idle)
start_next_send();
}
@@ -759,7 +827,7 @@ namespace tether::ui {
g_slist_free(names);
}
gtk_widget_destroy(dialog);
- queue_files(std::move(files));
+ queue_files(std::move(files), g_devices.selected_device_fp);
}
void set_dropzone_active(bool active) {
@@ -814,7 +882,7 @@ namespace tether::ui {
set_status_action(_("Folders can't be sent — drop files instead."));
return;
}
- queue_files(std::move(files), skipped);
+ queue_files(std::move(files), g_devices.selected_device_fp, skipped);
}
void update_wifi_indicator() {
@@ -887,6 +955,45 @@ namespace tether::ui {
} // namespace
+ void devices_view_send_files(std::vector<std::filesystem::path> paths) {
+ const size_t before = paths.size();
+ std::erase_if(paths, [](const std::filesystem::path& path) {
+ std::error_code ec;
+ return std::filesystem::is_directory(path, ec);
+ });
+ if (paths.empty()) {
+ if (before > 0)
+ notify_if_hidden(_("Folders can't be sent — pick files instead."));
+ return;
+ }
+ if (!g_devices.snapshot_seen) {
+ g_devices.pending_send.insert(g_devices.pending_send.end(), paths.begin(), paths.end());
+ return;
+ }
+
+ // fp, name; a peer can hold two sessions for a moment, so dedupe.
+ std::vector<std::pair<std::string, std::string>> devices;
+ for (const auto& fp : g_devices.connected_fps) {
+ if (fp.empty() || std::any_of(devices.begin(), devices.end(), [&](const auto& d) { return d.first == fp; }))
+ continue;
+ std::string name = _("Unknown Device");
+ for (const auto& [paired_fp, paired_name] : g_devices.paired_devices)
+ if (paired_fp == fp)
+ name = paired_name;
+ devices.emplace_back(fp, name);
+ }
+
+ if (devices.empty()) {
+ const std::string message = _("No device is connected.");
+ set_status_action(message);
+ notify_if_hidden(message);
+ return;
+ }
+ const std::string target = devices.size() == 1 ? devices.front().first : pick_send_target(devices);
+ if (!target.empty())
+ queue_files(std::move(paths), target);
+ }
+
void devices_view_handle_disconnect() {
set_bt_progress("");
g_devices.airpods_connecting = false;
@@ -1138,6 +1245,9 @@ namespace tether::ui {
return false;
if (command == "state_snapshot") {
apply_state_snapshot(event);
+ g_devices.snapshot_seen = true;
+ if (!g_devices.pending_send.empty())
+ devices_view_send_files(std::exchange(g_devices.pending_send, {}));
return true;
}
if (command == "mdns_status") {
@@ -1307,6 +1417,7 @@ namespace tether::ui {
P_("Skipped {} non-file item.", "Skipped {} non-file items.", g_devices.send_skipped),
g_devices.send_skipped);
set_status_action(message);
+ notify_if_hidden(message);
g_devices.send_batch_total = 0;
g_devices.send_failed = 0;
diff --git a/src/gtk/devices_view.hpp b/src/gtk/devices_view.hpp
index 3e09ea3..95fa0f7 100644
--- a/src/gtk/devices_view.hpp
+++ b/src/gtk/devices_view.hpp
@@ -1,7 +1,9 @@
#pragma once
+#include <filesystem>
#include <gtk/gtk.h>
#include <nlohmann/json.hpp>
+#include <vector>
namespace tether::ui {
@@ -12,6 +14,9 @@ namespace tether::ui {
// Returns true when the event belonged to this view.
bool devices_view_handle_event(const nlohmann::json& event);
+ // Sends files to the one connected device, or asks which when there are several.
+ void devices_view_send_files(std::vector<std::filesystem::path> paths);
+
// Drops the queue of files waiting on a daemon that is no longer there.
void devices_view_handle_disconnect();
diff --git a/src/gtk/main.cpp b/src/gtk/main.cpp
index d6b3d7f..f44b775 100644
--- a/src/gtk/main.cpp
+++ b/src/gtk/main.cpp
@@ -11,6 +11,7 @@
#include "ui_util.hpp"
#include <csignal>
+#include <filesystem>
#include <glib-unix.h>
#include <gtk/gtk.h>
#include <string>
@@ -430,11 +431,46 @@ int main(int argc, char** argv) {
G_OPTION_ARG_STRING,
_("Open the messages tab on this conversation"),
"KEY");
+ g_application_add_main_option(G_APPLICATION(app),
+ "send",
+ 0,
+ G_OPTION_FLAG_NONE,
+ G_OPTION_ARG_NONE,
+ _("Send the given files, asking which device when several are connected"),
+ nullptr);
+ const GOptionEntry remaining[] = {
+ {G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, nullptr, nullptr, _("FILE…")},
+ {},
+ };
+ g_application_add_main_option_entries(G_APPLICATION(app), remaining);
g_signal_connect(app,
"command-line",
G_CALLBACK(+[](GApplication* app, GApplicationCommandLine* cmdline, gpointer) -> gint {
GVariantDict* options = g_application_command_line_get_options_dict(cmdline);
+ if (g_variant_dict_contains(options, "send")) {
+ // paths are resolved against caller's directory, which can differ
+ std::vector<std::filesystem::path> paths;
+ const gchar** args = nullptr;
+ if (g_variant_dict_lookup(options, G_OPTION_REMAINING, "^a&ay", &args) && args) {
+ for (const gchar** arg = args; *arg; ++arg) {
+ GFile* file = g_application_command_line_create_file_for_arg(cmdline, *arg);
+ if (gchar* path = g_file_get_path(file)) {
+ paths.emplace_back(path);
+ g_free(path);
+ }
+ g_object_unref(file);
+ }
+ g_free(args);
+ }
+ // first launch builds the UI hidden; a running one stays as it is.
+ if (!tether::ui::main_window()) {
+ g_start_hidden = TRUE;
+ g_application_activate(app);
+ }
+ tether::ui::devices_view_send_files(std::move(paths));
+ return 0;
+ }
if (g_variant_dict_contains(options, "tray"))
g_start_hidden = TRUE;
for (const char* view : {"devices", "messages", "notifications", "contacts"}) {
diff --git a/src/gtk/tether-send.desktop b/src/gtk/tether-send.desktop
new file mode 100644
index 0000000..9f67ce6
--- /dev/null
+++ b/src/gtk/tether-send.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Service
+X-KDE-ServiceTypes=KonqPopupMenu/Plugin
+ServiceTypes=KonqPopupMenu/Plugin
+MimeType=all/allfiles;
+Actions=TetherSend;
+
+[Desktop Action TetherSend]
+Name=Send with Tether
+Icon=tether
+Exec=tether-gtk --send %F
diff --git a/src/tui/devices.cpp b/src/tui/devices.cpp
index ede0dce..fcb61e8 100644
--- a/src/tui/devices.cpp
+++ b/src/tui/devices.cpp
@@ -624,7 +624,7 @@ namespace tether::tui {
void start_next_send() {
if (send_queue_.empty())
return;
- const std::filesystem::path& path = send_queue_.front();
+ const auto& [path, target] = send_queue_.front();
// TRANSLATORS: {} is a file name.
std::string status = tr_format(_("Sending {}…"), path.filename().string());
if (send_batch_total_ > 1) {
@@ -634,7 +634,10 @@ namespace tether::tui {
}
action_note_ = status;
app::status(status);
- app::send({{"command", "send_file"}, {"path", path.string()}});
+ json request{{"command", "send_file"}, {"path", path.string()}};
+ if (!target.empty())
+ request["target"] = target;
+ app::send(request);
}
// Space-separated paths; a backslash escapes a space in a name.
@@ -690,8 +693,11 @@ namespace tether::tui {
send_batch_total_ += files.size();
send_skipped_ += skipped;
}
+ // The selected Wi-Fi device, or every connected one when none is selected.
+ const std::string target =
+ selected_.rfind(WIFI_PREFIX, 0) == 0 ? selected_.substr(WIFI_PREFIX.size()) : std::string{};
for (auto& path : files)
- send_queue_.push_back(std::move(path));
+ send_queue_.emplace_back(std::move(path), target);
if (idle)
start_next_send();
}
@@ -1174,7 +1180,7 @@ namespace tether::tui {
std::string bt_operation_id_;
// Files waiting to go to the phone, front is in flight.
- std::deque<std::filesystem::path> send_queue_;
+ std::deque<std::pair<std::filesystem::path, std::string>> send_queue_; // path, target fp
size_t send_batch_total_ = 0;
size_t send_failed_ = 0;
size_t send_skipped_ = 0;