Skip to content

fix(clipboard): force text/plain for wayland copies#4151

Open
cyphercodes wants to merge 1 commit into
micro-editor:masterfrom
cyphercodes:fix-wayland-copy-text-plain-4150
Open

fix(clipboard): force text/plain for wayland copies#4151
cyphercodes wants to merge 1 commit into
micro-editor:masterfrom
cyphercodes:fix-wayland-copy-text-plain-4150

Conversation

@cyphercodes

Copy link
Copy Markdown

Summary

Fixes #4150.

When running on Wayland, micro now prefers a small wl-clipboard adapter that invokes wl-copy --type text/plain. This prevents wl-copy from auto-detecting copied buffer text containing [Desktop Entry] as application/x-desktop only, which makes normal text pastes appear empty in other apps.

Tests

  • go test ./internal/clipboard -run TestWaylandCopyArgs -count=1
  • go test ./internal/clipboard -count=1
  • go test ./internal/... -count=1
  • git diff --check

Signed-off-by: cyphercodes <cyphercodes@users.noreply.github.com>
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.

Copying text which contains the line [Desktop Entry] silently fails on Wayland

1 participant