mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
docs: clarify screenshot paths within the write grant
Document the same scoped absolute paths accepted by the screenshot writer and the other automation file operations.
This commit is contained in:
1 file changed
+1
-1
@@ -154,7 +154,7 @@ The transport is `apps/photocraft/src/control_server.rs`, and the handlers are i
|
||||
- `ui.resize {width, height}`: resize the main window
|
||||
- `ui.gpu.simulateLoss {error?}`: act as if the wgpu device was lost (or reported an error with `error: true`). The app switches to the CPU image compositor (after a loss for the rest of the session; after an error until a successful Retry GPU) and shows the same recovery warning as on a real loss. `gpuFallbackNotice` in `ui.inspect` contains the reason while the warning is open. Keep Using CPU saves CPU compatibility for the next launch. Retry GPU saves GPU mode; after an error (`error: true`) it also builds a new GPU canvas on the same device at once (`gpuInfo.canvas` is `gpu` again, #6577), and after a loss it asks the user to save and restart. The window renderer still requires a working graphics or software adapter. Returns `wasActive` and `gpuInfo`. For testing the fallback. With `destroy: true` it destroys the window's real wgpu device instead, as a driver reset does (see `docs/development.md` › device loss): the app saves every unsaved document for recovery and closes. Returns `destroyed`
|
||||
- `ui.screenshot {path?, focus?}`: capture the main window (PNG). With no path the reply contains
|
||||
base64 PNG data; a path is relative to the automation write root. Raises the window first
|
||||
base64 PNG data; a supplied path may be relative to the automation write root or absolute beneath its canonical or configured spelling. Raises the window first
|
||||
(default) because occluded macOS windows stop rendering. A request sent before the first frame
|
||||
is queued (within the same limits and deadline) and captures once the window geometry is known,
|
||||
as on 0.15. At most four captures may be outstanding (waiting for geometry, rendered or awaiting
|
||||
|
||||
Reference in new issue
Block a user