Repository navigation
release: 1.6.8 — files from sync paste in Dolphin; file URIs fixed on Python 3.14 - #112
Merged
Merged
Conversation
… Python 3.14 Off cosmic-comp and Hyprland (KWin), copy_file's wl-copy carries the whole offer for native apps, and it sent x-special/gnome-copied-files. Dolphin ignores that flavor and offers to save the bytes as a new text file, so a zip synced from the Mac asked for a file name instead of pasting. Send text/uri-list instead, which every file manager reads; the no-owner xclip mirror now carries the same flavor. Python 3.14's pathname2url returns "///abs/path", so "file://" + it gave file://///abs/path. Build URIs with Path.as_uri() in the Wayland backend and the thumbnailer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On KWin (CachyOS Plasma), pasting a file received over sync into Dolphin opened "enter a name for the text file" instead of pasting the file.
copy_filesets the Wayland selection with a singlewl-copytype, and for non-image files that wasx-special/gnome-copied-files. Dolphin doesn't read that flavor and treats the clipboard as unknown data to save as a file.urllib.request.pathname2url("/abs")returns///abs, so"file://" + …producedfile://///home/....Fix
text/uri-list(read by Dolphin, Nautilus/GTK and browsers). The XWayland owner still serves both flavors, and the no-owner xclip mirror now matches the Wayland flavor._file_uri()usesPath.as_uri(). It is applied in_file_parts,copy_fileand the panel thumbnailer.Tests
scripts/recover_flavors_test.pycovers the uri-list flavor off cosmic, three-slash URIs with escaping, both owner parts, and the xclip mirror. Allscripts/*_test.pypass on Linux exceptmac_rich_copy_test.py, which needs AppKit (macOS only) and fails onmaintoo.🤖 Generated with Claude Code