https://bugs.documentfoundation.org/show_bug.cgi?id=161186

            Bug ID: 161186
           Summary: Unable to use the paste special dialog under KDE
                    Wayland
           Product: LibreOffice
           Version: 24.2.2.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When I try pasting from a web-browser (or anywhere else for that matter) using
Shift-Ctrl-V into Writer (or Impress), I get the Paste Special dialog. However,
no matter which option I select, I end up with the same "Requested clipboard
format is not available." info-box. 
Normal Ctrl-V pastes work perfectly.
Pasting in Calc does not result in that error.

Steps to Reproduce:
1. Open LibreOffice Writer
2. Copy some text in any other application (in my example, Firefox, but I can
reproduce with Kate and with apps running under XWayland)
3. Trigger the Paste Special dialog, either through Shift-Ctrl-V or through the
menu.
4. Select one of the options that show up (shouldn't matter which one)

Actual Results:
5. A window saying "Requested clipboard format is not available." pops up
(though it just showed that format being available). 

Expected Results:
5. The text or image is pasted using the format specified.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: kf6 (cairo+wayland)
Locale: en-US (en_US.UTF-8); UI: en-US
24.2.2-2
Calc: threaded

Running on Arch Linux (the libreoffice-fresh package) under KDE / Wayland, with
no language packs installed. Willing to help with extra debugging, including
compiling from source if necessary.

Might be a bug in KDE's Wayland implementation. However, wl-paste seems to be
able to paste correctly given the right MIME type, and e.g. `wl-paste --type
text/html` produces the clipboard contents just fine.

WORKAROUND:

If I set SAL_USE_VCLPLUGIN=gtk3, I get the "Unformatted Text" option working
again. However, any other paste options still result in the same error.

I can also get unformatted text to work by either using the Shift-Ctrl-Alt-V /
Paste Unformatted option, or by pasting into and recopying from a text editor.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to