https://bugs.kde.org/show_bug.cgi?id=512075

            Bug ID: 512075
           Summary: Clipboard.SetSelection only works with "text/plain"
                    mime_type
    Classification: Plasma
           Product: xdg-desktop-portal-kde
      Version First 6.5.1
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
When calling SetSelection, the SelectionTransfer signal will only ever send
"text/plain" as the mime_type.


STEPS TO REPRODUCE
1. Call SetSelection with mime_types = [ "text/plain;charset=utf-8",
"text/plain" ]
2. Wait for SelectionTransfer signal

OBSERVED RESULT
mime_type will always be "text/plain", limiting usage to ASCII characters only.

EXPECTED RESULT
The protocol is not clear if there is some kind of implied priority with the
mime_types, but I would expect utf-8 to be preferred over ASCII.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 43
KDE Plasma Version: 6.5.1
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
xdg-desktop-portal-kde-6.5.2-1 (+ patch
https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/b7f2107d0eb35d2b4cfccf9ffaa91437b88eff0a)

ADDITIONAL INFORMATION
I have tested calling SetSelection with mime_types set to [
"text/plain;charset=utf-8" ]. But when I do that, the SelectionTransfer signal
is never transmitted.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to