Linux: pasting an image into the composer freezes or silently does nothing
Describe the bug
On Linux, pasting an image from the system clipboard into the message composer does not create an attachment. With the stock AppImage the UI freezes for a while; on one attempt the bundled WebKit web process crashed. After switching the client to native Wayland and also testing the current system WebKitGTK, paste still completed with no image attached.
The same image clipboard content pastes successfully into other Linux applications and into Buzz on macOS.
Steps to reproduce
- Run the Buzz desktop client on a Wayland session.
- Copy a screenshot or PNG image to the system clipboard.
- Focus a channel or DM message composer.
- Press Ctrl+V.
Expected behavior
The image is added to the composer as an attachment/preview and the UI remains responsive.
Actual behavior
No image is attached. The stock AppImage pauses/freezes; the system journal repeatedly reports that the requested MIME type was not offered. One attempt also crashed the AppImage-bundled WebKitWebProcess.
Version and platform
- Buzz version: 0.5.3,
Buzz_0.5.3_amd64.AppImage - OS: CachyOS, kernel
7.1.5-1-cachyos - Desktop session: COSMIC on Wayland
- GPU: AMD Radeon RX 9070 XT (Navi 48)
- System WebKitGTK tested:
webkit2gtk-4.1 2.52.5-2
Logs / additional context
While an image was on the Wayland clipboard, wl-paste --list-types advertised image/png.
The stock AppImage produces repeated COSMIC/XWayland warnings:
cosmic-comp: Mime type requested by X client not offered
One failed paste produced this coredump:
WebKitWebProcess SIGSEGV
/tmp/.mount_Buzz_*/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1/WebKitWebProcess
I also tested WEBKIT_DISABLE_DMABUF_RENDERER=1, native Wayland instead of the AppImage's forced X11/XWayland path, and the official 0.5.4 Debian payload linked to system WebKitGTK. None made image paste work.
This is related to #2338, but is not limited to the dmabuf crash: even when there is no crash, image paste silently produces no attachment.
Confirmed on Omarchy/Hyprland/Wayland with WebKitGTK 2.52.5. The system clipboard correctly exposed image/png, while the composer silently produced no attachment.
A packaged build succeeded after combining the native clipboard fallback from #4599 with:
- editor-DOM capture-phase interception for WebKit events consumed before ProseMirror,
- conservative empty-
DataTransferfallback that preserves text/HTML/non-image formats, and - raw PNG binary IPC via
tauri::ipc::Response.
The live test used a 1890x1015 screenshot and successfully created the pending attachment and relay upload. A focused companion contribution is available at https://github.com/akalajzi/buzz/pull/1; it targets the existing PR branch rather than competing with #4599.
Please, it's a huge hassle not being able to paste images from the clipboard, since you always have to select each screenshot from the file dialog instead of using “Capture > Paste.”
Yeah, I dropped buzz because of this. I pushed a MR with a fix a long time ago, and its ignored. So I assume they are not taking contributions, but this is such an annoying everyday thing, that it makes no sense to fight with it all the time.