mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-18 09:14:01 -04:00
dms screenshot put only image/png on the clipboard. Terminals can only paste text, so pasting a screenshot into a terminal app (e.g. a CLI that attaches images from a pasted path) did nothing, while a file copied through the server's clipboard.copyFile pastes its path. When the screenshot is saved to a file, copy it the same way: gnome-copied-files, text/uri-list, the path as text/plain, and the image bytes. The server is asked first so the copy lands in history; without it, the same offers are served locally. The offer list is shared with Manager.CopyFile through clipboard.FileOffers. copyMultiFork now waits for the child to take the selection, like copyForkCached, so a failed local copy is reported instead of lost. dms cl copy --download shares this path and now falls back to a local copy when the server is down or rejects the file. --no-file and PPM keep the image-only copy.