Fix clipboard image paste on Linux #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/clipboard-image-paste-linux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ClipboardEvent.clipboardData- only the file/text paste path worked there. WebView2 (Windows) and WKWebView (macOS) already worked fine via the existing standard paste-event path.@tauri-apps/plugin-clipboard-managerand fall back to its nativereadImage()(goes straight to the OS clipboard, bypassing the webview entirely) whenever the standard paste event comes up empty - the RGBA buffer it returns is drawn onto a<canvas>and exported as a PNG blob, reusing the existing image-insert pipeline.clipboard-manager:allow-read-imagecapability (was missing, so the IPC call would've been silently blocked).CHANGELOG.mdentry.Test plan
npm run check(0 errors, 0 warnings)npm run test(101 passed)cargo buildcompiles cleanly🤖 Generated with Claude Code