Skip to content

Do not unquote dropped and pasted uris from uri_list#2638

Merged
jeremypw merged 3 commits intomainfrom
jeremypw/dnd/fix-single-quote
Aug 27, 2025
Merged

Do not unquote dropped and pasted uris from uri_list#2638
jeremypw merged 3 commits intomainfrom
jeremypw/dnd/fix-single-quote

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Aug 21, 2025

Fixes #2637

Simplest fix for the linked issue.

Files not longer quotes uris for dropping into apps like Terminal - the destination must do any quoting themselves. We can assume other apps behave similarly and we do not need to unquote received uris.

Note that since a single quote is one of the characters in GLib.RESERVED_CHARS_SUBCOMPONENT_DELIMITERS it does not get escaped in uris when files are being drag/dropped - but that is not changed by this PR.

Reviewers should confirm that under no circumstances do we need to unquote.

@jeremypw jeremypw requested review from a team and lenemter August 21, 2025 16:35
@jeremypw jeremypw added this to the 7.1.5 milestone Aug 26, 2025
Copy link
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as intended

@jeremypw jeremypw merged commit d55c3d4 into main Aug 27, 2025
4 checks passed
@jeremypw jeremypw deleted the jeremypw/dnd/fix-single-quote branch August 27, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with folder name containing single quotes

2 participants