Linux + iPhone Continuity / iMessage / SMS
feat: on idle MAP release
Zack Bartel8d4e826d8c2a
diff --git a/docs/BLUETOOTH.md b/docs/BLUETOOTH.mdindex df6c3a3..7d18b70 100644--- a/docs/BLUETOOTH.md+++ b/docs/BLUETOOTH.md@@ -906,10 +906,14 @@ The iPhone serves one MAP session at a time. Any other program on any machine ho**Two computers, one iPhone.** Whichever Tether opens MAP first keeps it, and the other pollswith `busy` until the phone leaves the first one's range. To hand it over:-- "Release messages and contacts while this computer is locked"- (`tether --bt-yield-when-locked on`): a locked computer drops MAP and PBAP, and the unlocked- one picks them up within about 15 s. Turn it on on both. It reads logind's `LockedHint`, so a- locker that does not set it never yields.+- "Release messages and contacts while this computer is locked or idle"+ (`tether --bt-yield-when-inactive on`): a locked or idle computer drops MAP and PBAP, and the+ one in use picks them up within about 15 s. Turn it on on both. A computer is inactive when+ any of these says so: logind's `LockedHint`, logind's `IdleHint` (set by gnome-session), or+ the compositor's `ext-idle-notify-v1` (wlroots, Hyprland, sway, KWin). The compositor timeout+ is `yield_idle_seconds` in `bluetooth.json`: 300 by default, no less than 30, and read when+ `tetherd` connects to the compositor. It respects idle inhibitors, so a playing video counts+ as in use.- Release by hand: `tether --bt-release map|pbap|ancs|all`, undone with `--bt-claim`. In the appsit is under Devices > Bluetooth > Advanced. Releases are not saved, so restarting `tetherd`claims everything again. Claiming only retries. The other computer has to release first.diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.mdindex e3a2de9..416f96f 100644--- a/docs/PROTOCOL.md+++ b/docs/PROTOCOL.md@@ -424,7 +424,7 @@ Broadcast when the published state actually changes, not on a timer.The two `*_reason` strings are written for display (permission is off or a transport that is busy).`map_error` and `pbap_error` name the classification: `forbidden` means the toggle on the phone is off,`busy` means another computer holds the phone's single MAP session.-`*_held` means the profile is released on this computer, by hand or because the session is locked.+`*_held` means the profile is released on this computer, by hand or because the session is locked or idle.#### `bt_hold` (Client -> Daemon, broadcast)**Payload**: `{"command": "bt_hold", "profile": "map", "held": true}`@@ -432,10 +432,10 @@ Releases (`held: true`) or reclaims a profile on this computer: `map`, `pbap`, `Not persisted; a daemon restart reclaims everything. Reclaiming retries the session, it cannottake MAP from another computer that holds it. Answered with a `bt_status` broadcast.-#### `bt_set_yield_when_locked` (Client -> Daemon, broadcast)-**Payload**: `{"command": "bt_set_yield_when_locked", "enabled": true}`-Persisted. While logind reports the session locked, MAP and PBAP are released so another-computer can take them. Reported as `yield_when_locked` in `bt_status`.+#### `bt_set_yield_when_inactive` (Client -> Daemon, broadcast)+**Payload**: `{"command": "bt_set_yield_when_inactive", "enabled": true}`+Persisted. While the session is locked or idle, MAP and PBAP are released so another+computer can take them. Reported as `yield_when_inactive` in `bt_status`.### AirPodsdiff --git a/po/cs.po b/po/cs.poindex 60bb3de..2ae672e 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Czech\n"@@ -116,14 +116,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Zamknout relaci, když iPhone opustí dosah: on nebo off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Uvolnit zprávy a kontakty, když je tento počítač zamčený: 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Uvolnit profil pro jiný počítač, dokud nebude znovu převzat: map, pbap, ancs nebo all."+msgstr ""+"Uvolnit profil pro jiný počítač, dokud nebude znovu převzat: map, pbap, ancs "+"nebo all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -599,12 +603,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Zprávy a kontakty budou uvolněny, když je tento počítač zamčený."+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ý."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Zprávy a kontakty zůstanou připojené, i když je tento počítač zamčený."+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ý."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -1669,11 +1675,10 @@ msgstr "Čeká se na iPhone."msgid "Messages and contacts"msgstr "Zprávy a kontakty"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Uvolněno, dokud je tento počítač zamčený: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Uvolněno, dokud je tento počítač zamčený nebo nečinný: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2456,15 +2461,19 @@ msgid "Release notifications"msgstr "Uvolnit oznámení"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Uvolnit zprávy a kontakty, když je tento počítač zamčený"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Uvolnit zprávy a kontakty, když je tento počítač zamčený nebo nečinný"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone poskytuje zprávy vždy jen jednomu počítači. Uvolnění je umožní převzít jinému počítači; zrušení zaškrtnutí zkusí připojení znovu, ale nemůže je převzít od počítače, který je stále drží. Uvolnění platí do restartu tetherd."+msgstr ""+"iPhone poskytuje zprávy vždy jen jednomu počítači. Uvolnění je umožní "+"převzít jinému počítači; zrušení zaškrtnutí zkusí připojení znovu, ale "+"nemůže je převzít od počítače, který je stále drží. Uvolnění platí do "+"restartu tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/de.po b/po/de.poindex 32b3084..a05cf69 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-22\n""Last-Translator: Tether project\n""Language-Team: German\n"@@ -117,14 +117,18 @@ msgstr """Die Sitzung sperren, wenn das iPhone außer Reichweite gerät: on oder off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt ist: on oder off."+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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Ein Profil für einen anderen Computer freigeben, bis es zurückgeholt wird: map, pbap, ancs oder all."+msgstr ""+"Ein Profil für einen anderen Computer freigeben, bis es zurückgeholt wird: "+"map, pbap, ancs oder all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -602,12 +606,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Nachrichten und Kontakte werden freigegeben, solange dieser Computer gesperrt ist."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Nachrichten und Kontakte bleiben verbunden, auch wenn dieser Computer gesperrt ist."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -621,7 +627,9 @@ msgstr "Auf diesem Computer freigegeben: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "%s wird zurückgeholt. Wenn ein anderer Computer es hält, geben Sie es zuerst dort frei.\n"+msgstr ""+"%s wird zurückgeholt. Wenn ein anderer Computer es hält, geben Sie es zuerst "+"dort frei.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1708,11 +1716,10 @@ msgstr "Warten auf das iPhone."msgid "Messages and contacts"msgstr "Nachrichten und Kontakte"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Freigegeben, solange dieser Computer gesperrt ist: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Freigegeben, solange dieser Computer gesperrt oder inaktiv ist: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2507,15 +2514,19 @@ msgid "Release notifications"msgstr "Mitteilungen freigeben"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt ist"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Nachrichten und Kontakte freigeben, solange dieser Computer gesperrt oder inaktiv ist"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "Das iPhone stellt Nachrichten immer nur einem Computer bereit. Freigeben lässt einen anderen Computer sie übernehmen; das Häkchen zu entfernen versucht es erneut, kann sie aber keinem Computer wegnehmen, der sie noch hält. Freigaben gelten bis zum Neustart von tetherd."+msgstr ""+"Das iPhone stellt Nachrichten immer nur einem Computer bereit. Freigeben "+"lässt einen anderen Computer sie übernehmen; das Häkchen zu entfernen "+"versucht es erneut, kann sie aber keinem Computer wegnehmen, der sie noch "+"hält. Freigaben gelten bis zum Neustart von tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/es.po b/po/es.poindex fe5e6ae..a8aa7e0 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-22\n""Last-Translator: Tether project\n""Language-Team: Spanish\n"@@ -119,14 +119,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Bloquear la sesión cuando el iPhone quede fuera de alcance: on u off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado: 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Liberar un perfil para otro ordenador hasta recuperarlo: map, pbap, ancs o all."+msgstr ""+"Liberar un perfil para otro ordenador hasta recuperarlo: map, pbap, ancs o "+"all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -606,12 +610,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Los mensajes y contactos se liberarán mientras este ordenador esté bloqueado."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Los mensajes y contactos siguen conectados mientras este ordenador está bloqueado."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -1695,11 +1701,10 @@ msgstr "Esperando al iPhone."msgid "Messages and contacts"msgstr "Mensajes y contactos"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Liberado mientras este ordenador está bloqueado: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Liberado mientras este ordenador está bloqueado o inactivo: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2493,15 +2498,19 @@ msgid "Release notifications"msgstr "Liberar notificaciones"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Liberar mensajes y contactos mientras este ordenador está bloqueado o inactivo"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "El iPhone sirve los mensajes a un solo ordenador a la vez. Liberarlos permite que otro ordenador los tome; desmarcar vuelve a intentarlo, pero no puede quitárselos a un ordenador que todavía los tiene. Las liberaciones duran hasta que tetherd se reinicia."+msgstr ""+"El iPhone sirve los mensajes a un solo ordenador a la vez. Liberarlos "+"permite que otro ordenador los tome; desmarcar vuelve a intentarlo, pero no "+"puede quitárselos a un ordenador que todavía los tiene. Las liberaciones "+"duran hasta que tetherd se reinicia."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/fr.po b/po/fr.poindex fc7e56a..bbe66a5 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-22\n""Last-Translator: Tether project\n""Language-Team: French\n"@@ -119,14 +119,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Verrouiller la session quand l'iPhone sort de portée : on ou off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Libérer les messages et les contacts quand cet ordinateur est verrouillé : 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Libérer un profil pour un autre ordinateur jusqu'à sa reprise : map, pbap, ancs ou all."+msgstr ""+"Libérer un profil pour un autre ordinateur jusqu'à sa reprise : map, pbap, "+"ancs ou all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -606,12 +610,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Les messages et les contacts seront libérés quand cet ordinateur est verrouillé."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Les messages et les contacts restent connectés quand cet ordinateur est verrouillé."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -625,7 +631,9 @@ msgstr "Libéré sur cet ordinateur : %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "Reprise de %s. Si un autre ordinateur le détient, libérez-le d'abord là-bas.\n"+msgstr ""+"Reprise de %s. Si un autre ordinateur le détient, libérez-le d'abord là-"+"bas.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1699,11 +1707,10 @@ msgstr "En attente de l'iPhone."msgid "Messages and contacts"msgstr "Messages et contacts"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Libéré tant que cet ordinateur est verrouillé : {}."+msgid "{} released while this computer is locked or idle."+msgstr "Libéré tant que cet ordinateur est verrouillé ou inactif : {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2497,15 +2504,19 @@ msgid "Release notifications"msgstr "Libérer les notifications"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Libérer les messages et les contacts quand cet ordinateur est verrouillé"+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"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "L'iPhone ne sert les messages qu'à un seul ordinateur à la fois. Les libérer permet à un autre ordinateur de les prendre ; décocher réessaie, mais ne peut pas les reprendre à un ordinateur qui les détient encore. Les libérations durent jusqu'au redémarrage de tetherd."+msgstr ""+"L'iPhone ne sert les messages qu'à un seul ordinateur à la fois. Les libérer "+"permet à un autre ordinateur de les prendre ; décocher réessaie, mais ne "+"peut pas les reprendre à un ordinateur qui les détient encore. Les "+"libérations durent jusqu'au redémarrage de tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/it.po b/po/it.poindex 87546b3..1fc7eb8 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Italian\n"@@ -120,14 +120,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Blocca la sessione quando l'iPhone esce dalla portata: on oppure off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato: on o 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Rilascia un profilo per un altro computer finché non viene ripreso: map, pbap, ancs o all."+msgstr ""+"Rilascia un profilo per un altro computer finché non viene ripreso: map, "+"pbap, ancs o all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -605,12 +609,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Messaggi e contatti verranno rilasciati mentre questo computer è bloccato."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Messaggi e contatti restano connessi mentre questo computer è bloccato."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -1693,11 +1699,10 @@ msgstr "In attesa dell'iPhone."msgid "Messages and contacts"msgstr "Messaggi e contatti"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Rilasciato mentre questo computer è bloccato: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Rilasciato mentre questo computer è bloccato o inattivo: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2490,15 +2495,19 @@ msgid "Release notifications"msgstr "Rilascia notifiche"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Rilascia messaggi e contatti mentre questo computer è bloccato o inattivo"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "L'iPhone fornisce i messaggi a un solo computer alla volta. Rilasciarli permette a un altro computer di prenderli; togliere la spunta riprova, ma non può toglierli a un computer che li tiene ancora. I rilasci durano fino al riavvio di tetherd."+msgstr ""+"L'iPhone fornisce i messaggi a un solo computer alla volta. Rilasciarli "+"permette a un altro computer di prenderli; togliere la spunta riprova, ma "+"non può toglierli a un computer che li tiene ancora. I rilasci durano fino "+"al riavvio di tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/ja.po b/po/ja.poindex be50db7..f532e97 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Japanese\n"@@ -117,14 +117,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "iPhone が範囲外になったらセッションをロックします: on または off。"#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "このコンピュータがロックされている間、メッセージと連絡先を解放します: on または off。"+msgid ""+"Release messages and contacts while this computer is locked or idle: on or "+"off."+msgstr "このコンピュータがロック中またはアイドル状態の間、メッセージと連絡先を解放します: on または off。"#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "再取得するまで、プロファイルを他のコンピュータのために解放します: map、pbap、ancs、all。"+msgstr ""+"再取得するまで、プロファイルを他のコンピュータのために解放します: map、pbap、"+"ancs、all。"#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -591,12 +595,14 @@ msgid "Locking on the iPhone going out of range is off."msgstr "iPhone が範囲外になったときのロックは無効です。"#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."-msgstr "このコンピュータがロックされている間、メッセージと連絡先は解放されます。"+msgid ""+"Messages and contacts will be released while this computer is locked or idle."+msgstr "このコンピュータがロック中またはアイドル状態の間、メッセージと連絡先は解放されます。"#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "このコンピュータがロックされていても、メッセージと連絡先は接続されたままです。"+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."+msgstr "このコンピュータがロック中またはアイドル状態でも、メッセージと連絡先は接続されたままです。"#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -610,7 +616,9 @@ msgstr "このコンピュータで解放しました: %s。\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "%s を再取得しています。他のコンピュータが保持している場合は、先にそちらで解放してください。\n"+msgstr ""+"%s を再取得しています。他のコンピュータが保持している場合は、先にそちらで解放"+"してください。\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1662,11 +1670,10 @@ msgstr "iPhone を待っています。"msgid "Messages and contacts"msgstr "メッセージと連絡先"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "このコンピュータのロック中は解放されています: {}。"+msgid "{} released while this computer is locked or idle."+msgstr "このコンピュータのロック中またはアイドル中は解放されています: {}。"#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2451,15 +2458,19 @@ msgid "Release notifications"msgstr "通知を解放"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "このコンピュータのロック中はメッセージと連絡先を解放"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "このコンピュータのロック中またはアイドル中はメッセージと連絡先を解放"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone はメッセージを一度に 1 台のコンピュータにしか提供しません。解放すると他のコンピュータが取得できます。チェックを外すと再試行しますが、まだ保持しているコンピュータから取り戻すことはできません。解放は tetherd を再起動するまで続きます。"+msgstr ""+"iPhone はメッセージを一度に 1 台のコンピュータにしか提供しません。解放すると"+"他のコンピュータが取得できます。チェックを外すと再試行しますが、まだ保持して"+"いるコンピュータから取り戻すことはできません。解放は tetherd を再起動するまで"+"続きます。"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/ko.po b/po/ko.poindex f9449fc..a5e838e 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Korean\n"@@ -115,14 +115,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "iPhone이 범위를 벗어나면 세션을 잠급니다: on 또는 off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "이 컴퓨터가 잠겨 있는 동안 메시지와 연락처를 해제합니다: on 또는 off."+msgid ""+"Release messages and contacts while this computer is locked or idle: on or "+"off."+msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 메시지와 연락처를 해제합니다: on 또는 off."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "다시 가져올 때까지 다른 컴퓨터를 위해 프로필을 해제합니다: map, pbap, ancs 또는 all."+msgstr ""+"다시 가져올 때까지 다른 컴퓨터를 위해 프로필을 해제합니다: map, pbap, ancs 또"+"는 all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -585,12 +589,14 @@ msgid "Locking on the iPhone going out of range is off."msgstr "iPhone이 범위를 벗어날 때 잠그는 기능이 꺼져 있습니다."#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."-msgstr "이 컴퓨터가 잠겨 있는 동안 메시지와 연락처가 해제됩니다."+msgid ""+"Messages and contacts will be released while this computer is locked or idle."+msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 메시지와 연락처가 해제됩니다."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "이 컴퓨터가 잠겨 있어도 메시지와 연락처는 연결된 상태로 유지됩니다."+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."+msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태여도 메시지와 연락처는 연결된 상태로 유지됩니다."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -604,7 +610,9 @@ msgstr "이 컴퓨터에서 해제됨: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "%s을(를) 다시 가져오는 중입니다. 다른 컴퓨터가 사용 중이면 먼저 그쪽에서 해제하세요.\n"+msgstr ""+"%s을(를) 다시 가져오는 중입니다. 다른 컴퓨터가 사용 중이면 먼저 그쪽에서 해제"+"하세요.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1640,11 +1648,10 @@ msgstr "iPhone을 기다리는 중입니다."msgid "Messages and contacts"msgstr "메시지와 연락처"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "이 컴퓨터가 잠겨 있는 동안 해제됨: {}."+msgid "{} released while this computer is locked or idle."+msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 해제됨: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2421,15 +2428,18 @@ msgid "Release notifications"msgstr "알림 해제"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "이 컴퓨터가 잠겨 있는 동안 메시지와 연락처 해제"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "이 컴퓨터가 잠겨 있거나 유휴 상태인 동안 메시지와 연락처 해제"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone은 한 번에 한 컴퓨터에만 메시지를 제공합니다. 해제하면 다른 컴퓨터가 가져갈 수 있습니다. 선택을 해제하면 다시 시도하지만, 아직 사용 중인 컴퓨터에서 가져올 수는 없습니다. 해제는 tetherd를 다시 시작할 때까지 유지됩니다."+msgstr ""+"iPhone은 한 번에 한 컴퓨터에만 메시지를 제공합니다. 해제하면 다른 컴퓨터가 가"+"져갈 수 있습니다. 선택을 해제하면 다시 시도하지만, 아직 사용 중인 컴퓨터에서 "+"가져올 수는 없습니다. 해제는 tetherd를 다시 시작할 때까지 유지됩니다."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/nl.po b/po/nl.poindex 514f6c8..20174e2 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Dutch\n"@@ -118,14 +118,18 @@ msgstr """De sessie vergrendelen wanneer de iPhone buiten bereik raakt: on of off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld is: on of off."+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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Een profiel vrijgeven voor een andere computer tot het wordt teruggenomen: map, pbap, ancs of all."+msgstr ""+"Een profiel vrijgeven voor een andere computer tot het wordt teruggenomen: "+"map, pbap, ancs of all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -603,12 +607,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Berichten en contacten worden vrijgegeven zolang deze computer vergrendeld is."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Berichten en contacten blijven verbonden als deze computer vergrendeld is."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -622,7 +628,9 @@ msgstr "Vrijgegeven op deze computer: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "%s wordt teruggenomen. Als een andere computer het vasthoudt, geef het daar eerst vrij.\n"+msgstr ""+"%s wordt teruggenomen. Als een andere computer het vasthoudt, geef het daar "+"eerst vrij.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1686,11 +1694,10 @@ msgstr "Wachten op de iPhone."msgid "Messages and contacts"msgstr "Berichten en contacten"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Vrijgegeven zolang deze computer vergrendeld is: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Vrijgegeven zolang deze computer vergrendeld of inactief is: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2478,15 +2485,19 @@ msgid "Release notifications"msgstr "Meldingen vrijgeven"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld is"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Berichten en contacten vrijgeven zolang deze computer vergrendeld of inactief is"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "De iPhone levert berichten aan één computer tegelijk. Vrijgeven laat een andere computer ze overnemen; het vinkje weghalen probeert het opnieuw, maar kan ze niet afpakken van een computer die ze nog vasthoudt. Vrijgaven gelden tot tetherd opnieuw start."+msgstr ""+"De iPhone levert berichten aan één computer tegelijk. Vrijgeven laat een "+"andere computer ze overnemen; het vinkje weghalen probeert het opnieuw, maar "+"kan ze niet afpakken van een computer die ze nog vasthoudt. Vrijgaven gelden "+"tot tetherd opnieuw start."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/pl.po b/po/pl.poindex ad17f57..307832f 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Polish\n"@@ -117,14 +117,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Zablokuj sesję, gdy iPhone znajdzie się poza zasięgiem: on lub off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany: 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Zwolnij profil dla innego komputera do czasu przejęcia: map, pbap, ancs lub all."+msgstr ""+"Zwolnij profil dla innego komputera do czasu przejęcia: map, pbap, ancs lub "+"all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -605,12 +609,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Wiadomości i kontakty będą zwalniane, gdy ten komputer jest zablokowany."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Wiadomości i kontakty pozostają połączone, gdy ten komputer jest zablokowany."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -624,7 +630,8 @@ msgstr "Zwolniono na tym komputerze: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "Przejmowanie %s. Jeśli trzyma go inny komputer, najpierw zwolnij go tam.\n"+msgstr ""+"Przejmowanie %s. Jeśli trzyma go inny komputer, najpierw zwolnij go tam.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1685,11 +1692,10 @@ msgstr "Oczekiwanie na iPhone'a."msgid "Messages and contacts"msgstr "Wiadomości i kontakty"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Zwolnione, gdy ten komputer jest zablokowany: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Zwolnione, gdy ten komputer jest zablokowany lub bezczynny: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2476,15 +2482,19 @@ msgid "Release notifications"msgstr "Zwolnij powiadomienia"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Zwalniaj wiadomości i kontakty, gdy ten komputer jest zablokowany"+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"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone udostępnia wiadomości tylko jednemu komputerowi naraz. Zwolnienie pozwala przejąć je innemu komputerowi; odznaczenie ponawia próbę, ale nie odbierze ich komputerowi, który nadal je trzyma. Zwolnienia obowiązują do ponownego uruchomienia tetherd."+msgstr ""+"iPhone udostępnia wiadomości tylko jednemu komputerowi naraz. Zwolnienie "+"pozwala przejąć je innemu komputerowi; odznaczenie ponawia próbę, ale nie "+"odbierze ich komputerowi, który nadal je trzyma. Zwolnienia obowiązują do "+"ponownego uruchomienia tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/pt_BR.po b/po/pt_BR.poindex 4f09e81..40d254f 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Brazilian Portuguese\n"@@ -118,14 +118,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Bloquear a sessão quando o iPhone sair do alcance: on ou off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado: 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Liberar um perfil para outro computador até ser retomado: map, pbap, ancs ou all."+msgstr ""+"Liberar um perfil para outro computador até ser retomado: map, pbap, ancs ou "+"all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -600,12 +604,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Mensagens e contatos serão liberados enquanto este computador estiver bloqueado."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Mensagens e contatos continuam conectados enquanto este computador estiver bloqueado."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -619,7 +625,8 @@ msgstr "Liberado neste computador: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "Retomando %s. Se outro computador estiver com ele, libere-o lá primeiro.\n"+msgstr ""+"Retomando %s. Se outro computador estiver com ele, libere-o lá primeiro.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1685,11 +1692,10 @@ msgstr "Aguardando o iPhone."msgid "Messages and contacts"msgstr "Mensagens e contatos"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Liberado enquanto este computador estiver bloqueado: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Liberado enquanto este computador estiver bloqueado ou ocioso: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2477,15 +2483,19 @@ msgid "Release notifications"msgstr "Liberar notificações"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Liberar mensagens e contatos enquanto este computador estiver bloqueado ou ocioso"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "O iPhone fornece mensagens a um computador por vez. Liberar permite que outro computador as assuma; desmarcar tenta de novo, mas não consegue tomá-las de um computador que ainda as mantém. As liberações duram até o tetherd reiniciar."+msgstr ""+"O iPhone fornece mensagens a um computador por vez. Liberar permite que "+"outro computador as assuma; desmarcar tenta de novo, mas não consegue tomá-"+"las de um computador que ainda as mantém. As liberações duram até o tetherd "+"reiniciar."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/ru.po b/po/ru.poindex b6f24dc..e077cfa 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Russian\n"@@ -117,14 +117,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Блокировать сеанс, когда iPhone выходит из зоны действия: on или off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован: on или off."+msgid ""+"Release messages and contacts while this computer is locked or idle: on or "+"off."+msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован или простаивает: on или off."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Освободить профиль для другого компьютера до возврата: map, pbap, ancs или all."+msgstr ""+"Освободить профиль для другого компьютера до возврата: map, pbap, ancs или "+"all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -605,12 +609,14 @@ msgid "Locking on the iPhone going out of range is off."msgstr "Блокировка при выходе iPhone из зоны действия выключена."#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."-msgstr "Сообщения и контакты будут освобождаться, пока этот компьютер заблокирован."+msgid ""+"Messages and contacts will be released while this computer is locked or idle."+msgstr "Сообщения и контакты будут освобождаться, пока этот компьютер заблокирован или простаивает."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Сообщения и контакты остаются подключёнными, пока этот компьютер заблокирован."+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."+msgstr "Сообщения и контакты остаются подключёнными, пока этот компьютер заблокирован или простаивает."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -624,7 +630,8 @@ msgstr "Освобождено на этом компьютере: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "Возврат %s. Если его держит другой компьютер, сначала освободите его там.\n"+msgstr ""+"Возврат %s. Если его держит другой компьютер, сначала освободите его там.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1685,11 +1692,10 @@ msgstr "Ожидание iPhone."msgid "Messages and contacts"msgstr "Сообщения и контакты"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Освобождено, пока этот компьютер заблокирован: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Освобождено, пока этот компьютер заблокирован или простаивает: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2478,15 +2484,19 @@ msgid "Release notifications"msgstr "Освободить уведомления"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Освобождать сообщения и контакты, пока этот компьютер заблокирован или простаивает"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone отдаёт сообщения только одному компьютеру за раз. Освобождение позволяет другому компьютеру забрать их; снятие флажка повторяет попытку, но не может забрать их у компьютера, который всё ещё их держит. Освобождение действует до перезапуска tetherd."+msgstr ""+"iPhone отдаёт сообщения только одному компьютеру за раз. Освобождение "+"позволяет другому компьютеру забрать их; снятие флажка повторяет попытку, но "+"не может забрать их у компьютера, который всё ещё их держит. Освобождение "+"действует до перезапуска tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/sv.po b/po/sv.poindex 0f70d77..f0ba617 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Swedish\n"@@ -117,14 +117,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Lås sessionen när iPhonen hamnar utom räckhåll: on eller off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Släpp meddelanden och kontakter medan den här datorn är låst: 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Släpp en profil till en annan dator tills den tas tillbaka: map, pbap, ancs eller all."+msgstr ""+"Släpp en profil till en annan dator tills den tas tillbaka: map, pbap, ancs "+"eller all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -600,12 +604,14 @@ msgid "Locking on the iPhone going out of range is off."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."-msgstr "Meddelanden och kontakter släpps medan den här datorn är låst."+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."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Meddelanden och kontakter förblir anslutna medan den här datorn är låst."+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."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -1670,11 +1676,10 @@ msgstr "Väntar på iPhonen."msgid "Messages and contacts"msgstr "Meddelanden och kontakter"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Släppt medan den här datorn är låst: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Släppt medan den här datorn är låst eller inaktiv: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2456,15 +2461,18 @@ msgid "Release notifications"msgstr "Släpp aviseringar"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Släpp meddelanden och kontakter medan den här datorn är låst"+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"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhonen levererar meddelanden till en dator i taget. Att släppa dem låter en annan dator ta över; att bocka ur försöker igen, men kan inte ta dem från en dator som fortfarande håller dem. Släpp gäller tills tetherd startas om."+msgstr ""+"iPhonen levererar meddelanden till en dator i taget. Att släppa dem låter en "+"annan dator ta över; att bocka ur försöker igen, men kan inte ta dem från en "+"dator som fortfarande håller dem. Släpp gäller tills tetherd startas om."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/tether.pot b/po/tether.potindex 1933f2f..c83ce3c 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-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"@@ -113,7 +113,9 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr ""#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."+msgid ""+"Release messages and contacts while this computer is locked or idle: on or "+"off."msgstr ""#: src/cli/main.cpp@@ -547,11 +549,13 @@ msgid "Locking on the iPhone going out of range is off."msgstr ""#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."+msgid ""+"Messages and contacts will be released while this computer is locked or idle."msgstr ""#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."msgstr ""#: src/cli/main.cpp@@ -1491,10 +1495,9 @@ msgstr ""msgid "Messages and contacts"msgstr ""-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."+msgid "{} released while this computer is locked or idle."msgstr ""#: src/core/src/bluetooth/profile_supervisor.cpp@@ -2224,7 +2227,7 @@ msgid "Release notifications"msgstr ""#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"+msgid "Release messages and contacts while this computer is locked or idle"msgstr ""#: src/gtk/devices_view.cpp src/tui/devices.cppdiff --git a/po/tr.po b/po/tr.poindex 1ee6ffe..3b6e79a 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Turkish\n"@@ -115,14 +115,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "iPhone menzil dışına çıkınca oturumu kilitle: on veya off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Bu bilgisayar kilitliyken mesajları ve kişileri bırak: 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."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Geri alınana kadar bir profili başka bir bilgisayar için bırak: map, pbap, ancs veya all."+msgstr ""+"Geri alınana kadar bir profili başka bir bilgisayar için bırak: map, pbap, "+"ancs veya all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -599,12 +603,14 @@ msgid "Locking on the iPhone going out of range is off."msgstr "iPhone menzil dışına çıkınca kilitleme kapalı."#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."-msgstr "Bu bilgisayar kilitliyken mesajlar ve kişiler bırakılacak."+msgid ""+"Messages and contacts will be released while this computer is locked or idle."+msgstr "Bu bilgisayar kilitli veya boştayken mesajlar ve kişiler bırakılacak."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Bu bilgisayar kilitliyken mesajlar ve kişiler bağlı kalır."+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."+msgstr "Bu bilgisayar kilitli veya boştayken mesajlar ve kişiler bağlı kalır."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -1669,11 +1675,10 @@ msgstr "iPhone bekleniyor."msgid "Messages and contacts"msgstr "Mesajlar ve kişiler"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Bu bilgisayar kilitliyken bırakıldı: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Bu bilgisayar kilitli veya boştayken bırakıldı: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2452,15 +2457,19 @@ msgid "Release notifications"msgstr "Bildirimleri bırak"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Bu bilgisayar kilitliyken mesajları ve kişileri bırak"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Bu bilgisayar kilitli veya boştayken mesajları ve kişileri bırak"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone mesajları aynı anda yalnızca bir bilgisayara sunar. Bırakmak başka bir bilgisayarın onları almasını sağlar; işareti kaldırmak yeniden dener, ancak hâlâ tutan bir bilgisayardan alamaz. Bırakmalar tetherd yeniden başlayana kadar geçerlidir."+msgstr ""+"iPhone mesajları aynı anda yalnızca bir bilgisayara sunar. Bırakmak başka "+"bir bilgisayarın onları almasını sağlar; işareti kaldırmak yeniden dener, "+"ancak hâlâ tutan bir bilgisayardan alamaz. Bırakmalar tetherd yeniden "+"başlayana kadar geçerlidir."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/uk.po b/po/uk.poindex bf3787a..d61ce10 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Ukrainian\n"@@ -119,14 +119,18 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "Блокувати сеанс, коли iPhone виходить із зони дії: on або off."#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано: on або off."+msgid ""+"Release messages and contacts while this computer is locked or idle: on or "+"off."+msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано або неактивний: on або off."#: src/cli/main.cppmsgid """Release a profile for another computer until claimed: map, pbap, ancs, or ""all."-msgstr "Звільнити профіль для іншого комп'ютера до повернення: map, pbap, ancs або all."+msgstr ""+"Звільнити профіль для іншого комп'ютера до повернення: map, pbap, ancs або "+"all."#: src/cli/main.cppmsgid "Take back a released profile: map, pbap, ancs, or all."@@ -605,12 +609,14 @@ msgid "Locking on the iPhone going out of range is off."msgstr "Блокування, коли iPhone виходить із зони дії, вимкнено."#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."-msgstr "Повідомлення й контакти звільнятимуться, поки цей комп'ютер заблоковано."+msgid ""+"Messages and contacts will be released while this computer is locked or idle."+msgstr "Повідомлення й контакти звільнятимуться, поки цей комп'ютер заблоковано або неактивний."#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "Повідомлення й контакти лишаються під'єднаними, поки цей комп'ютер заблоковано."+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."+msgstr "Повідомлення й контакти лишаються під'єднаними, поки цей комп'ютер заблоковано або неактивний."#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -624,7 +630,8 @@ msgstr "Звільнено на цьому комп'ютері: %s.\n"#: src/cli/main.cpp#, c-formatmsgid "Claiming %s. If another computer holds it, release it there first.\n"-msgstr "Повернення %s. Якщо його тримає інший комп'ютер, спершу звільніть його там.\n"+msgstr ""+"Повернення %s. Якщо його тримає інший комп'ютер, спершу звільніть його там.\n"#: src/cli/main.cppmsgid "Daemon closed the connection before the operation finished.\n"@@ -1681,11 +1688,10 @@ msgstr "Очікування iPhone."msgid "Messages and contacts"msgstr "Повідомлення й контакти"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "Звільнено, поки цей комп'ютер заблоковано: {}."+msgid "{} released while this computer is locked or idle."+msgstr "Звільнено, поки цей комп'ютер заблоковано або неактивний: {}."#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2473,15 +2479,19 @@ msgid "Release notifications"msgstr "Звільнити сповіщення"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "Звільняти повідомлення й контакти, поки цей комп'ютер заблоковано або неактивний"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone віддає повідомлення лише одному комп'ютеру водночас. Звільнення дає змогу іншому комп'ютеру забрати їх; зняття позначки повторює спробу, але не може забрати їх у комп'ютера, який досі їх тримає. Звільнення діє до перезапуску tetherd."+msgstr ""+"iPhone віддає повідомлення лише одному комп'ютеру водночас. Звільнення дає "+"змогу іншому комп'ютеру забрати їх; зняття позначки повторює спробу, але не "+"може забрати їх у комп'ютера, який досі їх тримає. Звільнення діє до "+"перезапуску tetherd."#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/po/zh_CN.po b/po/zh_CN.poindex 8520f6d..67cc21f 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 10:15-0700\n"+"POT-Creation-Date: 2026-10-18 15:06-0700\n""PO-Revision-Date: 2026-08-23\n""Last-Translator: Tether project\n""Language-Team: Simplified Chinese\n"@@ -113,8 +113,10 @@ msgid "Lock the session when the iPhone goes out of range: on or off."msgstr "当 iPhone 超出范围时锁定会话:on 或 off。"#: src/cli/main.cpp-msgid "Release messages and contacts while this computer is locked: on or off."-msgstr "此电脑锁定时释放信息和通讯录:on 或 off。"+msgid ""+"Release messages and contacts while this computer is locked or idle: on or "+"off."+msgstr "此电脑锁定或空闲时释放信息和通讯录:on 或 off。"#: src/cli/main.cppmsgid ""@@ -574,12 +576,14 @@ msgid "Locking on the iPhone going out of range is off."msgstr "iPhone 超出范围时锁定已关闭。"#: src/cli/main.cpp-msgid "Messages and contacts will be released while this computer is locked."-msgstr "此电脑锁定时将释放信息和通讯录。"+msgid ""+"Messages and contacts will be released while this computer is locked or idle."+msgstr "此电脑锁定或空闲时将释放信息和通讯录。"#: src/cli/main.cpp-msgid "Messages and contacts stay connected while this computer is locked."-msgstr "此电脑锁定时信息和通讯录保持连接。"+msgid ""+"Messages and contacts stay connected while this computer is locked or idle."+msgstr "此电脑锁定或空闲时信息和通讯录保持连接。"#: src/cli/main.cppmsgid "Use map, pbap, ancs, or all.\n"@@ -1601,11 +1605,10 @@ msgstr "正在等待 iPhone。"msgid "Messages and contacts"msgstr "信息和通讯录"-#. TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format-msgid "{} released while this computer is locked."-msgstr "此电脑锁定期间已释放:{}。"+msgid "{} released while this computer is locked or idle."+msgstr "此电脑锁定或空闲期间已释放:{}。"#: src/core/src/bluetooth/profile_supervisor.cpp#, c++-format@@ -2370,15 +2373,17 @@ msgid "Release notifications"msgstr "释放通知"#: src/gtk/devices_view.cpp src/tui/devices.cpp-msgid "Release messages and contacts while this computer is locked"-msgstr "此电脑锁定时释放信息和通讯录"+msgid "Release messages and contacts while this computer is locked or idle"+msgstr "此电脑锁定或空闲时释放信息和通讯录"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid """The iPhone serves messages to one computer at a time. Releasing lets another ""computer take them; unchecking retries, but cannot take them from a computer ""that still holds them. Releases last until tetherd restarts."-msgstr "iPhone 一次只向一台电脑提供信息。释放后其他电脑可以接管;取消勾选会重试,但无法从仍占用它们的电脑那里取回。释放状态持续到 tetherd 重启。"+msgstr ""+"iPhone 一次只向一台电脑提供信息。释放后其他电脑可以接管;取消勾选会重试,但无"+"法从仍占用它们的电脑那里取回。释放状态持续到 tetherd 重启。"#: src/gtk/devices_view.cpp src/tui/devices.cppmsgid "Pair over Bluetooth"diff --git a/src/cli/main.cpp b/src/cli/main.cppindex cd42807..c5c54eb 100644--- a/src/cli/main.cpp+++ b/src/cli/main.cpp@@ -200,7 +200,7 @@ static const Opt kOptions[] = {{"--bt-airpods-pause", N_("Pause local playback when an AirPod is removed: never, one-removed, both-removed.")},{"--bt-airpods-handoff", N_("Hand the AirPods to the iPhone during a call: on or off.")},{"--bt-lock-on-away", N_("Lock the session when the iPhone goes out of range: on or off.")},- {"--bt-yield-when-locked", N_("Release messages and contacts while this computer is locked: on or off.")},+ {"--bt-yield-when-inactive", N_("Release messages and contacts while this computer is locked or idle: on or off.")},{"--bt-release", N_("Release a profile for another computer until claimed: map, pbap, ancs, or all.")},{"--bt-claim", N_("Take back a released profile: map, pbap, ancs, or all.")},{"--bt-threads", N_("List iPhone message conversations.")},@@ -699,20 +699,20 @@ static int set_bt_lock_on_away(tether::Client& client, const std::string& value)return 0;}-static int set_bt_yield_when_locked(tether::Client& client, const std::string& value) {+static int set_bt_yield_when_inactive(tether::Client& client, const std::string& value) {if (value != "on" && value != "off") {debug::log(ERR, _("Use on or off.\n"));return 1;}- if (!client.send(nlohmann::json{{"command", "bt_set_yield_when_locked"}, {"enabled", value == "on"}}.dump() ++ if (!client.send(nlohmann::json{{"command", "bt_set_yield_when_inactive"}, {"enabled", value == "on"}}.dump() +"\n")) {debug::log(ERR, _("Could not reach the daemon.\n"));return 1;}fprintf(stdout,"%s\n",- value == "on" ? _("Messages and contacts will be released while this computer is locked.")- : _("Messages and contacts stay connected while this computer is locked."));+ value == "on" ? _("Messages and contacts will be released while this computer is locked or idle.")+ : _("Messages and contacts stay connected while this computer is locked or idle."));return 0;}@@ -1387,8 +1387,8 @@ int main(int argc, char* argv[]) {action = "bt_lock_on_away";if (i + 1 < argc && argv[i + 1][0] != '-')arg_val = argv[++i];- } else if (arg == "--bt-yield-when-locked") {- action = "bt_yield_when_locked";+ } else if (arg == "--bt-yield-when-inactive") {+ action = "bt_yield_when_inactive";if (i + 1 < argc && argv[i + 1][0] != '-')arg_val = argv[++i];} else if (arg == "--bt-release" || arg == "--bt-claim") {@@ -1665,8 +1665,8 @@ int main(int argc, char* argv[]) {return set_bt_airpods_handoff(client, arg_val);} else if (action == "bt_lock_on_away") {return set_bt_lock_on_away(client, arg_val);- } else if (action == "bt_yield_when_locked") {- return set_bt_yield_when_locked(client, arg_val);+ } else if (action == "bt_yield_when_inactive") {+ return set_bt_yield_when_inactive(client, arg_val);} else if (action == "bt_release" || action == "bt_claim") {return set_bt_hold(client, arg_val, action == "bt_release");} else if (action == "bt_diagnostics") {diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex 81ccf72..e8dd44e 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -46,6 +46,7 @@ add_library(tether STATICsrc/wayland_protocols/wayland.cppsrc/wayland_protocols/wlr-data-control-unstable-v1.cppsrc/wayland_protocols/ext-data-control-v1.cpp+ src/wayland_protocols/ext-idle-notify-v1.cpp)pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0 gio-2.0)diff --git a/src/core/include/tether/bluetooth/config.hpp b/src/core/include/tether/bluetooth/config.hppindex db29925..cd31018 100644--- a/src/core/include/tether/bluetooth/config.hpp+++ b/src/core/include/tether/bluetooth/config.hpp@@ -7,6 +7,10 @@namespace tether::bluetooth {+ // How long without input before an idle session releases MAP and PBAP, and its floor.+ inline constexpr int YIELD_IDLE_SECONDS = 300;+ inline constexpr int MIN_YIELD_IDLE_SECONDS = 30;+// Which pairing transaction to run.//// ConnectFirst calls Device1.Connect() on the unpaired device and lets iOS@@ -61,8 +65,10 @@ namespace tether::bluetooth {bool lock_on_away = false;// How long every bearer must stay down before the session is locked.int lock_away_seconds = AWAY_LOCK_GRACE_SECONDS;- // Whether a locked session releases MAP and PBAP for another computer.- bool yield_when_locked = false;+ // Whether a locked or idle session releases MAP and PBAP for another computer.+ bool yield_when_inactive = false;+ // Seconds without input before the compositor reports the session idle.+ int yield_idle_seconds = YIELD_IDLE_SECONDS;// What performs the lock. Empty uses logind.std::string lock_command;diff --git a/src/core/include/tether/bluetooth/connection.hpp b/src/core/include/tether/bluetooth/connection.hppindex d4df51b..3dc6989 100644--- a/src/core/include/tether/bluetooth/connection.hpp+++ b/src/core/include/tether/bluetooth/connection.hpp@@ -60,8 +60,8 @@ namespace tether::bluetooth {// False for an unknown profile.bool set_hold(const std::string& profile, bool held);- // Whether a locked session releases MAP and PBAP for another computer.- void set_yield_when_locked(bool enabled);+ // Whether a locked or idle session releases MAP and PBAP for another computer.+ void set_yield_when_inactive(bool enabled);// Invokes a mirrored notification's action.bool perform_notification_action(uint32_t uid, ancs::ActionId action);diff --git a/src/core/include/tether/bluetooth/profile_supervisor.hpp b/src/core/include/tether/bluetooth/profile_supervisor.hppindex 9e44644..35d2a17 100644--- a/src/core/include/tether/bluetooth/profile_supervisor.hpp+++ b/src/core/include/tether/bluetooth/profile_supervisor.hpp@@ -83,8 +83,8 @@ namespace tether::bluetooth {void drop_map();// A held profile has its session removed and is not reopened until the- // hold is lifted. `by_lock` only changes the reason shown.- void set_held(bool map, bool pbap, bool by_lock);+ // hold is lifted. `by_inactivity` only changes the reason shown.+ void set_held(bool map, bool pbap, bool by_inactivity);const ProfileStatus& status() const { return status_; }const std::string& map_session() const { return map_path_; }@@ -101,7 +101,7 @@ namespace tether::bluetooth {bool pbap_retried_ = false;int64_t next_attempt_ = 0;bool opened_once_ = false;- bool held_by_lock_ = false;+ bool held_by_inactivity_ = false;};} // namespace tether::bluetoothdiff --git a/src/core/include/tether/session_lock.hpp b/src/core/include/tether/session_lock.hppindex a01e7dc..363dde3 100644--- a/src/core/include/tether/session_lock.hpp+++ b/src/core/include/tether/session_lock.hpp@@ -7,7 +7,8 @@ namespace tether {// Locks the desktop session. With `command` empty this asks logind.bool lock_session(const std::string& command);- // logind's LockedHint for this session. False when logind cannot be asked.- bool session_locked();+ // Locked or idle: logind's LockedHint or IdleHint, or the compositor's idle+ // notification. False when none of them can be asked.+ bool session_inactive();} // namespace tetherdiff --git a/src/core/include/tether/wayland.hpp b/src/core/include/tether/wayland.hppindex 017e482..c88d916 100644--- a/src/core/include/tether/wayland.hpp+++ b/src/core/include/tether/wayland.hpp@@ -15,6 +15,8 @@ class CCWlSeat;class CCZwlrDataControlManagerV1;class CCExtDataControlManagerV1;struct wl_display;+class CCExtIdleNotifierV1;+class CCExtIdleNotificationV1;namespace tether {@@ -58,6 +60,8 @@ namespace tether {std::unique_ptr<CCZwlrDataControlManagerV1> wlr_data_control_manager_;std::unique_ptr<CCExtDataControlManagerV1> ext_data_control_manager_;std::unique_ptr<ClipboardManager> clipboard_;+ std::unique_ptr<CCExtIdleNotifierV1> idle_notifier_;+ std::unique_ptr<CCExtIdleNotificationV1> idle_notification_;std::function<void(const std::string&)> clipboard_cb_;std::function<void(const std::string&)> clipboard_image_cb_;@@ -68,4 +72,8 @@ namespace tether {extern WaylandContext* g_wayland;+ // Whether the compositor reports no input for `yield_idle_seconds`. False+ // without a compositor or without ext-idle-notify-v1. Safe from any thread.+ bool wayland_idle();+} // namespace tetherdiff --git a/src/core/src/bluetooth/config.cpp b/src/core/src/bluetooth/config.cppindex 627c2ec..dd22fed 100644--- a/src/core/src/bluetooth/config.cpp+++ b/src/core/src/bluetooth/config.cpp@@ -71,7 +71,8 @@ namespace tether::bluetooth {j["lock_on_away"] = config.lock_on_away;j["lock_away_seconds"] = config.lock_away_seconds;j["lock_command"] = config.lock_command;- j["yield_when_locked"] = config.yield_when_locked;+ j["yield_when_inactive"] = config.yield_when_inactive;+ j["yield_idle_seconds"] = config.yield_idle_seconds;return j.dump(2);}@@ -97,7 +98,10 @@ namespace tether::bluetooth {config.airpods_pause = pause_mode_from_string(j.value("airpods_pause", ""));config.airpods_handoff = j.value("airpods_handoff", false);config.lock_on_away = j.value("lock_on_away", false);- config.yield_when_locked = j.value("yield_when_locked", false);+ config.yield_when_inactive = j.value("yield_when_inactive", false);+ // A short timeout would hand the phone away during a pause in typing.+ config.yield_idle_seconds =+ std::max(MIN_YIELD_IDLE_SECONDS, j.value("yield_idle_seconds", YIELD_IDLE_SECONDS));// A zero or negative grace would lock on the first flap.config.lock_away_seconds = std::max(1, j.value("lock_away_seconds", AWAY_LOCK_GRACE_SECONDS));config.lock_command = j.value("lock_command", "");diff --git a/src/core/src/bluetooth/connection.cpp b/src/core/src/bluetooth/connection.cppindex 68a10f0..a669a81 100644--- a/src/core/src/bluetooth/connection.cpp+++ b/src/core/src/bluetooth/connection.cpp@@ -692,8 +692,8 @@ namespace tether::bluetooth {std::atomic<bool> hold_map{false};std::atomic<bool> hold_pbap{false};std::atomic<bool> hold_ancs{false};- // Whether a locked session releases MAP and PBAP.- std::atomic<bool> yield_when_locked{false};+ // Whether a locked or idle session releases MAP and PBAP.+ std::atomic<bool> yield_when_inactive{false};// When the last path to the phone went down, -1 while any is up.int64_t gone_since = -1;// Whether the away lock has already fired for this absence.@@ -1389,8 +1389,8 @@ namespace tether::bluetooth {}link_was_ready = link_ready;- const bool locked = yield_when_locked.load() && session_locked();- profiles->set_held(hold_map.load() || locked, hold_pbap.load() || locked, locked);+ const bool inactive = yield_when_inactive.load() && session_inactive();+ profiles->set_held(hold_map.load() || inactive, hold_pbap.load() || inactive, inactive);profiles->tick(now, bearers->status().device_paired);const auto& bearer = bearers->status();@@ -1450,7 +1450,7 @@ namespace tether::bluetooth {state_->calls_wanted = config.calls_enabled;state_->lock_on_away = config.lock_on_away;state_->lock_away_seconds = config.lock_away_seconds;- state_->yield_when_locked = config.yield_when_locked;+ state_->yield_when_inactive = config.yield_when_inactive;// Read the controller's capability here rather than letting each caller// latch its own copy. At startup BlueZ may not have finished enumerating// the adapter, and its free advertising-instance count drops to zero@@ -1602,7 +1602,7 @@ namespace tether::bluetooth {return true;}- void ConnectionManager::set_yield_when_locked(bool enabled) { state_->yield_when_locked = enabled; }+ void ConnectionManager::set_yield_when_inactive(bool enabled) { state_->yield_when_inactive = enabled; }void ConnectionManager::set_lock_on_away(bool enabled, int grace_seconds) {state_->lock_on_away = enabled;diff --git a/src/core/src/bluetooth/profile_supervisor.cpp b/src/core/src/bluetooth/profile_supervisor.cppindex 25d608f..b9c459f 100644--- a/src/core/src/bluetooth/profile_supervisor.cpp+++ b/src/core/src/bluetooth/profile_supervisor.cpp@@ -148,8 +148,8 @@ namespace tether::bluetooth {next_attempt_ = 0;}- void ProfileSupervisor::set_held(bool map, bool pbap, bool by_lock) {- held_by_lock_ = by_lock;+ void ProfileSupervisor::set_held(bool map, bool pbap, bool by_inactivity) {+ held_by_inactivity_ = by_inactivity;if (map != status_.map_held) {status_.map_held = map;if (map) {@@ -233,8 +233,9 @@ namespace tether::bluetooth {: status_.map_held ? _("Messages"): _("Contacts");// TRANSLATORS: {} is Messages, Contacts, or Messages and contacts.- status_.reason = held_by_lock_ ? tr_format(_("{} released while this computer is locked."), names)- : tr_format(_("{} released on this computer."), names);+ status_.reason = held_by_inactivity_+ ? tr_format(_("{} released while this computer is locked or idle."), names)+ : tr_format(_("{} released on this computer."), names);} else if (status_.map_open && status_.pbap_open) {status_.reason = _("Messages and contacts are connected.");} else if (!status_.map_open && status_.map_error != ObexError::None) {diff --git a/src/core/src/net.cpp b/src/core/src/net.cppindex 7df9367..4fff430 100644--- a/src/core/src/net.cpp+++ b/src/core/src/net.cpp@@ -430,7 +430,7 @@ namespace tether {status["airpods_handoff"] = config.airpods_handoff;status["lock_on_away"] = config.lock_on_away;status["lock_away_seconds"] = config.lock_away_seconds;- status["yield_when_locked"] = config.yield_when_locked;+ status["yield_when_inactive"] = config.yield_when_inactive;status["version"] = TETHER_VERSION;if (!bluetooth::g_bluez) {status["capability"] = nullptr;@@ -1451,12 +1451,12 @@ namespace tether {bluetooth::g_bt_connections->set_lock_on_away(config.lock_on_away,config.lock_away_seconds);broadcast_local_event(build_bt_status().dump());- } else if (j.contains("command") && j["command"] == "bt_set_yield_when_locked") {+ } else if (j.contains("command") && j["command"] == "bt_set_yield_when_inactive") {auto config = bluetooth::load_config();- config.yield_when_locked = j.value("enabled", false);+ config.yield_when_inactive = j.value("enabled", false);bluetooth::save_config(config);if (bluetooth::g_bt_connections)- bluetooth::g_bt_connections->set_yield_when_locked(config.yield_when_locked);+ bluetooth::g_bt_connections->set_yield_when_inactive(config.yield_when_inactive);broadcast_local_event(build_bt_status().dump());} else if (j.contains("command") && j["command"] == "bt_hold" && j.contains("profile")) {if (bluetooth::g_bt_connections &&diff --git a/src/core/src/session_lock.cpp b/src/core/src/session_lock.cppindex 6d3ed52..4a5ca19 100644--- a/src/core/src/session_lock.cpp+++ b/src/core/src/session_lock.cpp@@ -1,4 +1,5 @@#include "tether/session_lock.hpp"+#include "tether/wayland.hpp"#include <tether/log.hpp>@@ -28,14 +29,14 @@ namespace tether {return connection;}- bool already_locked(GDBusConnection* connection) {+ bool bool_property(GDBusConnection* connection, const char* name) {GError* error = nullptr;GVariant* reply = g_dbus_connection_call_sync(connection,LOGIND_NAME,SESSION_PATH,"org.freedesktop.DBus.Properties","Get",- g_variant_new("(ss)", SESSION_IFACE, "LockedHint"),+ g_variant_new("(ss)", SESSION_IFACE, name),G_VARIANT_TYPE("(v)"),G_DBUS_CALL_FLAGS_NO_AUTO_START,CALL_TIMEOUT_MS,@@ -48,11 +49,11 @@ namespace tether {GVariant* boxed = nullptr;g_variant_get(reply, "(v)", &boxed);- const bool locked = boxed && g_variant_get_boolean(boxed);+ const bool value = boxed && g_variant_get_boolean(boxed);if (boxed)g_variant_unref(boxed);g_variant_unref(reply);- return locked;+ return value;}bool lock_via_logind() {@@ -60,7 +61,7 @@ namespace tether {if (!connection)return false;- if (already_locked(connection)) {+ if (bool_property(connection, "LockedHint")) {debug::log(INFO, "lock: session is already locked");return true;}@@ -119,9 +120,12 @@ namespace tether {return lock_via_logind();}- bool session_locked() {+ bool session_inactive() {+ if (wayland_idle())+ return true;GDBusConnection* connection = bus();- return connection && already_locked(connection);+ // GNOME has no ext-idle-notify, but gnome-session sets IdleHint.+ return connection && (bool_property(connection, "LockedHint") || bool_property(connection, "IdleHint"));}} // namespace tetherdiff --git a/src/core/src/wayland.cpp b/src/core/src/wayland.cppindex 9c14f5f..6cceebb 100644--- a/src/core/src/wayland.cpp+++ b/src/core/src/wayland.cpp@@ -1,9 +1,12 @@#include "tether/wayland.hpp"+#include "tether/bluetooth/config.hpp"#include "wayland_protocols/ext-data-control-v1.hpp"+#include "wayland_protocols/ext-idle-notify-v1.hpp"#include "wayland_protocols/wayland.hpp"#include "wayland_protocols/wlr-data-control-unstable-v1.hpp"#include <algorithm>+#include <atomic>#include <cstdlib>#include <cstring>#include <poll.h>@@ -16,6 +19,12 @@ namespace tether {WaylandContext* g_wayland = nullptr;+ namespace {+ std::atomic<bool> g_idle{false};+ } // namespace++ bool wayland_idle() { return g_idle; }+WaylandContext::WaylandContext(EpollEventLoop& loop) : loop_(loop) {}std::vector<std::string> wayland_sockets(const std::filesystem::path& runtime_dir) {@@ -46,6 +55,10 @@ namespace tether {return;// Crucial: Destroy all regular proxies BEFORE disconnecting the display.clipboard_.reset();+ idle_notification_.reset();+ idle_notifier_.reset();+ // A compositor that is gone cannot report the resume.+ g_idle = false;ext_data_control_manager_.reset();wlr_data_control_manager_.reset();seat_.reset();@@ -142,6 +155,9 @@ namespace tether {} else if (std::strcmp(interface, "ext_data_control_manager_v1") == 0) {auto p = wl_registry_bind((wl_registry*)r->resource(), name, &ext_data_control_manager_v1_interface, 1);ext_data_control_manager_ = std::make_unique<CCExtDataControlManagerV1>((wl_proxy*)p);+ } else if (std::strcmp(interface, "ext_idle_notifier_v1") == 0) {+ auto p = wl_registry_bind((wl_registry*)r->resource(), name, &ext_idle_notifier_v1_interface, 1);+ idle_notifier_ = std::make_unique<CCExtIdleNotifierV1>((wl_proxy*)p);}});@@ -155,6 +171,17 @@ namespace tether {return false;}+ // Respects idle inhibitors, so a video playing here counts as in use.+ if (idle_notifier_) {+ const uint32_t timeout_ms = bluetooth::load_config().yield_idle_seconds * 1000u;+ idle_notification_ = std::make_unique<CCExtIdleNotificationV1>(+ idle_notifier_->sendGetIdleNotification(timeout_ms, (wl_proxy*)seat_->resource()));+ idle_notification_->setIdled([](CCExtIdleNotificationV1*) { g_idle = true; });+ idle_notification_->setResumed([](CCExtIdleNotificationV1*) { g_idle = false; });+ } else {+ debug::log(INFO, "WaylandContext: compositor has no ext_idle_notifier_v1; idle is read from logind only.");+ }+// Prefer the standardized protocol; KWin only implements this one.if (ext_data_control_manager_) {clipboard_ = std::make_unique<DataControlClipboard<CCExtDataControlManagerV1,diff --git a/src/core/src/wayland_protocols/ext-idle-notify-v1.cpp b/src/core/src/wayland_protocols/ext-idle-notify-v1.cppnew file mode 100644index 0000000..c1ab1e1--- /dev/null+++ b/src/core/src/wayland_protocols/ext-idle-notify-v1.cpp@@ -0,0 +1,176 @@+// Generated with hyprwayland-scanner 0.4.6. Made with vaxry's keyboard and ❤️.+// ext_idle_notify_v1++/*+ This protocol's authors' copyright notice is:+++ Copyright © 2015 Martin Gräßlin+ Copyright © 2022 Simon Ser++ Permission is hereby granted, free of charge, to any person obtaining a+ copy of this software and associated documentation files (the "Software"),+ to deal in the Software without restriction, including without limitation+ the rights to use, copy, modify, merge, publish, distribute, sublicense,+ and/or sell copies of the Software, and to permit persons to whom the+ Software is furnished to do so, subject to the following conditions:++ The above copyright notice and this permission notice (including the next+ paragraph) shall be included in all copies or substantial portions of the+ Software.++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER+ DEALINGS IN THE SOFTWARE.++*/++#define private public+#define HYPRWAYLAND_SCANNER_NO_INTERFACES+#include "ext-idle-notify-v1.hpp"+#undef private+#define F std::function++static const wl_interface* extIdleNotifyV1_dummyTypes[] = { nullptr };++// Reference all other interfaces.+// The reason why this is in snake is to+// be able to cooperate with existing+// wayland_scanner interfaces (they are interop)+extern const wl_interface ext_idle_notifier_v1_interface;+extern const wl_interface ext_idle_notification_v1_interface;+extern const wl_interface wl_seat_interface;++static const void* _CCExtIdleNotifierV1VTable[] = {+ nullptr,+};++void CCExtIdleNotifierV1::sendDestroy() {+ if (!pResource)+ return;+ destroyed = true;++ auto proxy = wl_proxy_marshal_flags(pResource, 0, nullptr, wl_proxy_get_version(pResource), 1);+ proxy;+}++wl_proxy* CCExtIdleNotifierV1::sendGetIdleNotification(uint32_t timeout, wl_proxy* seat) {+ if (!pResource)+ return nullptr;++ auto proxy = wl_proxy_marshal_flags(pResource, 1, &ext_idle_notification_v1_interface, wl_proxy_get_version(pResource), 0, nullptr, timeout, seat);++ return proxy;+}++wl_proxy* CCExtIdleNotifierV1::sendGetInputIdleNotification(uint32_t timeout, wl_proxy* seat) {+ if (!pResource)+ return nullptr;++ auto proxy = wl_proxy_marshal_flags(pResource, 2, &ext_idle_notification_v1_interface, wl_proxy_get_version(pResource), 0, nullptr, timeout, seat);++ return proxy;+}+static const wl_interface* _CExtIdleNotifierV1GetIdleNotificationTypes[] = {+ &ext_idle_notification_v1_interface,+ nullptr,+ &wl_seat_interface,+};+static const wl_interface* _CExtIdleNotifierV1GetInputIdleNotificationTypes[] = {+ &ext_idle_notification_v1_interface,+ nullptr,+ &wl_seat_interface,+};++static const wl_message _CExtIdleNotifierV1Requests[] = {+ { .name = "destroy", .signature = "", .types = extIdleNotifyV1_dummyTypes + 0},+ { .name = "get_idle_notification", .signature = "nuo", .types = _CExtIdleNotifierV1GetIdleNotificationTypes + 0},+ { .name = "get_input_idle_notification", .signature = "2nuo", .types = _CExtIdleNotifierV1GetInputIdleNotificationTypes + 0},+};++const wl_interface ext_idle_notifier_v1_interface = {+ .name = "ext_idle_notifier_v1", .version = 2,+ .method_count = 3, .methods = _CExtIdleNotifierV1Requests,+ .event_count = 0, .events = nullptr,+};++CCExtIdleNotifierV1::CCExtIdleNotifierV1(wl_proxy* resource) : pResource(resource) {++ if (!pResource)+ return;++ wl_proxy_add_listener(pResource, (void (**)(void))&_CCExtIdleNotifierV1VTable, this);+}++CCExtIdleNotifierV1::~CCExtIdleNotifierV1() {+ if (!destroyed)+ sendDestroy();+}++static void _CExtIdleNotificationV1Idled(void* data, void* resource) {+ const auto PO = (CCExtIdleNotificationV1*)data;+ if (PO && PO->requests.idled)+ PO->requests.idled(PO);+}++static void _CExtIdleNotificationV1Resumed(void* data, void* resource) {+ const auto PO = (CCExtIdleNotificationV1*)data;+ if (PO && PO->requests.resumed)+ PO->requests.resumed(PO);+}++static const void* _CCExtIdleNotificationV1VTable[] = {+ (void*)_CExtIdleNotificationV1Idled,+ (void*)_CExtIdleNotificationV1Resumed,+};++void CCExtIdleNotificationV1::sendDestroy() {+ if (!pResource)+ return;+ destroyed = true;++ auto proxy = wl_proxy_marshal_flags(pResource, 0, nullptr, wl_proxy_get_version(pResource), 1);+ proxy;+}++static const wl_message _CExtIdleNotificationV1Requests[] = {+ { .name = "destroy", .signature = "", .types = extIdleNotifyV1_dummyTypes + 0},+};++static const wl_message _CExtIdleNotificationV1Events[] = {+ { .name = "idled", .signature = "", .types = extIdleNotifyV1_dummyTypes + 0},+ { .name = "resumed", .signature = "", .types = extIdleNotifyV1_dummyTypes + 0},+};++const wl_interface ext_idle_notification_v1_interface = {+ .name = "ext_idle_notification_v1", .version = 2,+ .method_count = 1, .methods = _CExtIdleNotificationV1Requests,+ .event_count = 2, .events = _CExtIdleNotificationV1Events,+};++CCExtIdleNotificationV1::CCExtIdleNotificationV1(wl_proxy* resource) : pResource(resource) {++ if (!pResource)+ return;++ wl_proxy_add_listener(pResource, (void (**)(void))&_CCExtIdleNotificationV1VTable, this);+}++CCExtIdleNotificationV1::~CCExtIdleNotificationV1() {+ if (!destroyed)+ sendDestroy();+}++void CCExtIdleNotificationV1::setIdled(F<void(CCExtIdleNotificationV1*)> &&handler) {+ requests.idled = std::move(handler);+}++void CCExtIdleNotificationV1::setResumed(F<void(CCExtIdleNotificationV1*)> &&handler) {+ requests.resumed = std::move(handler);+}++#undef Fdiff --git a/src/core/src/wayland_protocols/ext-idle-notify-v1.hpp b/src/core/src/wayland_protocols/ext-idle-notify-v1.hppnew file mode 100644index 0000000..d648095--- /dev/null+++ b/src/core/src/wayland_protocols/ext-idle-notify-v1.hpp@@ -0,0 +1,166 @@+// Generated with hyprwayland-scanner 0.4.6. Made with vaxry's keyboard and ❤️.+// ext_idle_notify_v1++/*+ This protocol's authors' copyright notice is:+++ Copyright © 2015 Martin Gräßlin+ Copyright © 2022 Simon Ser++ Permission is hereby granted, free of charge, to any person obtaining a+ copy of this software and associated documentation files (the "Software"),+ to deal in the Software without restriction, including without limitation+ the rights to use, copy, modify, merge, publish, distribute, sublicense,+ and/or sell copies of the Software, and to permit persons to whom the+ Software is furnished to do so, subject to the following conditions:++ The above copyright notice and this permission notice (including the next+ paragraph) shall be included in all copies or substantial portions of the+ Software.++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER+ DEALINGS IN THE SOFTWARE.++*/++#pragma once++#include <functional>+#include <cstdint>+#include <string>+#include <wayland-client.h>++#define F std::function++struct wl_proxy;+++class CCExtIdleNotifierV1;+class CCExtIdleNotificationV1;+class CCWlSeat;+class CCExtIdleNotificationV1;+class CCWlSeat;+class CCExtIdleNotificationV1;++#ifndef HYPRWAYLAND_SCANNER_NO_INTERFACES+extern const wl_interface ext_idle_notifier_v1_interface;+extern const wl_interface ext_idle_notification_v1_interface;++#endif+++class CCExtIdleNotifierV1 {+ public:+ CCExtIdleNotifierV1(wl_proxy*);+ ~CCExtIdleNotifierV1();+++ // set the data for this resource+ void setData(void* data) {{+ pData = data;+ }}++ // get the data for this resource+ void* data() {{+ return pData;+ }}++ // get the raw wl_resource (wl_proxy) ptr+ wl_proxy* resource() {{+ return pResource;+ }}++ // get the raw wl_proxy ptr+ wl_proxy* proxy() {{+ return pResource;+ }}++ // get the resource version+ int version() {{+ return wl_proxy_get_version(pResource);+ }}++ // --------------- Requests --------------- //+++ // --------------- Events --------------- //++ void sendDestroy();+ wl_proxy* sendGetIdleNotification(uint32_t, wl_proxy*);+ wl_proxy* sendGetInputIdleNotification(uint32_t, wl_proxy*);++ private:+ struct {+ } requests;++ wl_proxy* pResource = nullptr;++ bool destroyed = false;++ void* pData = nullptr;+};++++class CCExtIdleNotificationV1 {+ public:+ CCExtIdleNotificationV1(wl_proxy*);+ ~CCExtIdleNotificationV1();+++ // set the data for this resource+ void setData(void* data) {{+ pData = data;+ }}++ // get the data for this resource+ void* data() {{+ return pData;+ }}++ // get the raw wl_resource (wl_proxy) ptr+ wl_proxy* resource() {{+ return pResource;+ }}++ // get the raw wl_proxy ptr+ wl_proxy* proxy() {{+ return pResource;+ }}++ // get the resource version+ int version() {{+ return wl_proxy_get_version(pResource);+ }}++ // --------------- Requests --------------- //++ void setIdled(F<void(CCExtIdleNotificationV1*)> &&handler);+ void setResumed(F<void(CCExtIdleNotificationV1*)> &&handler);++ // --------------- Events --------------- //++ void sendDestroy();++ private:+ struct {+ F<void(CCExtIdleNotificationV1*)> idled;+ F<void(CCExtIdleNotificationV1*)> resumed;+ } requests;++ wl_proxy* pResource = nullptr;++ bool destroyed = false;++ void* pData = nullptr;+};++++#undef Fdiff --git a/src/gtk/devices_view.cpp b/src/gtk/devices_view.cppindex e49659d..4dc2e85 100644--- a/src/gtk/devices_view.cpp+++ b/src/gtk/devices_view.cpp@@ -95,7 +95,7 @@ namespace tether::ui {GtkWidget* chk_bt_hold_map = nullptr;GtkWidget* chk_bt_hold_pbap = nullptr;GtkWidget* chk_bt_hold_ancs = nullptr;- GtkWidget* chk_bt_yield_locked = nullptr;+ GtkWidget* chk_bt_yield_inactive = nullptr;GtkWidget* btn_bt_unpair = nullptr;std::string bt_operation_id;@@ -191,7 +191,7 @@ namespace tether::ui {void on_bt_enabled_toggled(GtkWidget* widget, gpointer);void on_bt_hold_toggled(GtkWidget* widget, gpointer);- void on_bt_yield_locked_toggled(GtkWidget* widget, gpointer);+ void on_bt_yield_inactive_toggled(GtkWidget* widget, gpointer);// set_active emits toggled, so programmatic writes are fenced from echoing back to the daemon.void set_check(GtkWidget* widget, gpointer handler, bool active) {@@ -485,9 +485,9 @@ namespace tether::ui {set_check(g_devices.chk_bt_hold_map, hold, connection.value("map_held", false));set_check(g_devices.chk_bt_hold_pbap, hold, connection.value("pbap_held", false));set_check(g_devices.chk_bt_hold_ancs, hold, connection.value("ancs_held", false));- set_check(g_devices.chk_bt_yield_locked,- reinterpret_cast<gpointer>(on_bt_yield_locked_toggled),- g_devices.bt_status.value("yield_when_locked", false));+ set_check(g_devices.chk_bt_yield_inactive,+ reinterpret_cast<gpointer>(on_bt_yield_inactive_toggled),+ g_devices.bt_status.value("yield_when_inactive", false));}void update_right_pane() {@@ -677,8 +677,8 @@ namespace tether::ui {{"held", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) == TRUE}});}- void on_bt_yield_locked_toggled(GtkWidget* widget, gpointer) {- daemon_send({{"command", "bt_set_yield_when_locked"},+ void on_bt_yield_inactive_toggled(GtkWidget* widget, gpointer) {+ daemon_send({{"command", "bt_set_yield_when_inactive"},{"enabled", gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) == TRUE}});}@@ -1794,9 +1794,10 @@ namespace tether::ui {g_devices.chk_bt_hold_map = advanced_check(_("Release messages"), "map", hold);g_devices.chk_bt_hold_pbap = advanced_check(_("Release contacts"), "pbap", hold);g_devices.chk_bt_hold_ancs = advanced_check(_("Release notifications"), "ancs", hold);- g_devices.chk_bt_yield_locked = advanced_check(_("Release messages and contacts while this computer is locked"),- nullptr,- G_CALLBACK(on_bt_yield_locked_toggled));+ g_devices.chk_bt_yield_inactive =+ advanced_check(_("Release messages and contacts while this computer is locked or idle"),+ nullptr,+ G_CALLBACK(on_bt_yield_inactive_toggled));GtkWidget* advanced_note = gtk_label_new(_("The iPhone serves messages to one computer at a time. Releasing ""lets another computer take them; unchecking retries, but cannot ""take them from a computer that still holds them. Releases last "diff --git a/src/tui/devices.cpp b/src/tui/devices.cppindex 7468680..ede0dce 100644--- a/src/tui/devices.cpp+++ b/src/tui/devices.cpp@@ -1034,11 +1034,12 @@ namespace tether::tui {rows.push_back(hold_row(_("Release messages"), "map", "map_held"));rows.push_back(hold_row(_("Release contacts"), "pbap", "pbap_held"));rows.push_back(hold_row(_("Release notifications"), "ancs", "ancs_held"));- const bool yield = bt_status_.value("yield_when_locked", false);+ const bool yield = bt_status_.value("yield_when_inactive", false);rows.push_back(toggle_row(- _("Release messages and contacts while this computer is locked"), yield, true, [yield] {- app::send({{"command", "bt_set_yield_when_locked"}, {"enabled", !yield}});- }));+ _("Release messages and contacts while this computer is locked or idle"),+ yield,+ true,+ [yield] { app::send({{"command", "bt_set_yield_when_inactive"}, {"enabled", !yield}}); }));rows.push_back(text_row(_("The iPhone serves messages to one computer at a time. Releasing ""lets another computer take them; unchecking retries, but cannot ""take them from a computer that still holds them. Releases last "diff --git a/test/test_bluetooth_supervisor.cpp b/test/test_bluetooth_supervisor.cppindex 0502ce8..07c4d86 100644--- a/test/test_bluetooth_supervisor.cpp+++ b/test/test_bluetooth_supervisor.cpp@@ -875,7 +875,7 @@ TEST(ProfileSupervisor, RepeatedHoldIsIdempotent) {EXPECT_EQ(ops.removed.size(), 2u);sup.tick(1, true);EXPECT_EQ(ops.map_attempts + ops.pbap_attempts, 2);- EXPECT_NE(sup.status().reason.find("locked"), std::string::npos);+ EXPECT_NE(sup.status().reason.find("idle"), std::string::npos);}// iOS routinely keeps an LE link while letting BR/EDR lapse. ANCS rides LE