docs/media.md: the portal capture no longer needs a tokio runtime to start
The Portal note said `start` needs a tokio runtime because zbus runs on it. Since the move of ashpd to `async-io` (e325b65) zbus runs every connection on an I/O thread of its own, whichever thread builds it, and the note in portal.rs says so (corrected ined49c28); this record was not among the four the gate listed and had been left behind. `stop` is the one that needs the runtime, and only to close the portal session in the background (elsewhere the session closes with the connection): the note now says both. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8f3d809e8a
commit
2e22fd567c
1 file changed
+6
-3
+6
-3
@@ -869,9 +869,12 @@ Notes:
|
|||||||
covered by other windows may be stale. MIT-SHM needs a local server with
|
covered by other windows may be stale. MIT-SHM needs a local server with
|
||||||
MIT-SHM 1.2; otherwise GetImage is used. The only `unsafe` here is mapping
|
MIT-SHM 1.2; otherwise GetImage is used. The only `unsafe` here is mapping
|
||||||
our memfd (`capture/x11/shm.rs`).
|
our memfd (`capture/x11/shm.rs`).
|
||||||
- Portal: `start` needs a tokio runtime (zbus runs on it) and may show the
|
- Portal: `start` runs on any executor (ashpd uses zbus's `async-io`, with an
|
||||||
desktop's picker. Choices persist with `PersistMode::ExplicitlyRevoked`: store
|
I/O thread of its own, in every binary of the workspace) and may show the
|
||||||
`PortalCapture::restore_token()` (e.g. in `voelin-store` settings) and pass it to
|
desktop's picker; `stop` closes the portal session only inside a tokio
|
||||||
|
runtime (elsewhere the session closes with the connection). Choices persist
|
||||||
|
with `PersistMode::ExplicitlyRevoked`: store `PortalCapture::restore_token()`
|
||||||
|
(e.g. in `voelin-store` settings) and pass it to
|
||||||
`PortalCapture::with_restore_token` next time. The cursor is embedded when
|
`PortalCapture::with_restore_token` next time. The cursor is embedded when
|
||||||
the portal supports it. Buffers: DMA-BUFs are offered first (a
|
the portal supports it. Buffers: DMA-BUFs are offered first (a
|
||||||
mandatory modifier property we fixate: the sink's tiled modifiers, best
|
mandatory modifier property we fixate: the sink's tiled modifiers, best
|
||||||
|
|||||||
Reference in new issue
Block a user