feat: Windows (CF_DIB) and macOS (AppleScript) clipboard image sync

This commit is contained in:
2026-08-14 09:55:32 -04:00
parent 147cba6d2a
commit 32eff914d5
10 changed files with 334 additions and 7 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ en mesh pair-à-pair sur réseau local. Chaque nœud est à la fois client et se
### 1. Clipboard (`internal/clipboard/`)
Interface unifiée `Read() / Write()` avec implémentations par plateforme :
Interface unifiée `Read() / Write()` avec implémentations par plateforme.
L'interface optionnelle `ImageClipboard` (`ReadImage` / `WriteImage`) ajoute la
sync d'images PNG (xclip/wl-clipboard sur Linux, CF_DIB sur Windows, AppleScript
sur macOS) :
- **Linux** : auto-détection X11/Wayland via `$XDG_SESSION_TYPE`
- X11 → `xclip -selection clipboard -o` / `xclip -selection clipboard`