mirror of
https://github.com/edu4rdshl/Strata.git
synced 2026-07-17 23:24:46 +00:00
docs: correct Wayland monitor protocol availability and post-0.3.0 drift
The monitor.rs comments claimed Mutter implements ext-data-control-v1 on GNOME 47+, contradicting ARCHITECTURE.md. Mutter exposes neither ext-data-control-v1 nor zwlr-data-control-v1, so the monitor never binds on GNOME and ingest comes from the extension via Meta.Selection + SubmitItem; the monitor only runs on wlroots. Correct the comments (module doc, Ext probe, bail! message) and the main.rs spawn comment. Also reconcile ARCHITECTURE.md with the code: supervisor backoff (1/2/4/8/16 s, 5 s reset, log-only give-up), SIGTERM at 1.5 s, prune as a separate post-insert call, multi-thread tokio default, the 200 px load-more threshold, and the SQL-side preview truncation. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
a4a6f1a3f9
commit
8a7091755b
4 changed files with 35 additions and 19 deletions
|
|
@ -97,3 +97,5 @@ Signals: `ItemAdded(id s, mime_type s, preview s)`, `ItemDeleted(id s)`, `Histor
|
|||
- `Ordering::Relaxed` is intentional on `Arc<AtomicUsize>` limits (advisory, not critical path).
|
||||
- Never execute clipboard content. Writes go through `wl-clipboard-rs` (`copy_multi`) in the daemon, never via shell subprocess or `eval`.
|
||||
- Excluded apps list is checked before storing any clipboard item.
|
||||
- Ingest paths are mutually exclusive by environment: on GNOME the monitor cannot bind (Mutter exposes neither data-control protocol) so ingest is GJS `SubmitItem`; on wlroots the built-in monitor is the path.
|
||||
- List queries (`get_history_page`, `search_history`) return `content_text` truncated to `PREVIEW_CHARS` via `substr`; full content is served only by `GetItemContent` for paste-back.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue