Announcement

Collapse
No announcement yet.

Kubuntu 22.04 + Wayland + Libreoffice

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kubuntu 22.04 + Wayland + Libreoffice

    Hello,
    I am testing out Wayland on Kubuntu 22.04

    Problem 1:
    It looks like if I copy plain text from Notepadqq, Kate, Firefox and I try a Paste Special into Libreoffice Writer, it gives a message box
    msg =
    Requested Clipboard format not available

    Doing just a Paste works in Libreoffice Writer.

    Problem 2:
    I tried to copy an section of an image from KolourPaint and I try to Paste or Paste Special into LibreOffice Writer. Nothing happens. No error message.


    Problem 3:
    KSnip and Flameshot are not able to take a screenshot.

    #2
    Upgrade to 24.04 if you want to use Wayland. Anything not working well in the Plasma version on 22.04 isn't going to be addressed, since KDE no longer supports 5.24.

    5.27 is a lot better for Wayland, but even there, I doubt if any issues can or will be fixed now that Plasma 6 is in full swing

    Flameshot and ksip may or may not support Plasma in Wayland at all in 22.04.
    But they should in 24.04.

    Libreoffice may have tweaks that might help, depending on the version.

    Comment


      #3
      I tried on Kubuntu 22.04.
      It looks like LibreOffice Writer works better there. i can paste an image, I can paste plain text to Writer.

      Flameshot and KSnip don't work.
      Programs have to be rewritten to work under Wayland?

      Comment


        #4
        Originally posted by vanadiumboy View Post
        Programs have to be rewritten to work under Wayland?
        Yes, they do need to have Wayland support built in but you most likely will not see them in 22.04 unless you find sources for newer versions:

        Flameshot which is still 2 years old, but should support wayland, maybe, on KDE.
        Ksnip as well.

        The only way to get better Wayland support on KDE Plasma itself is to upgrade Plasma - things like copy/paste and other problems will be better in the latest 5.27, and 6.

        Comment


          #5
          In my code, I use Qt and I just do this to copy some plain text to it.

          Code:
          QClipboard *pclipboard;
          
          pclipboard=QApplication::clipboard();
          
          
          if(strlen(pTextOutput))
              pclipboard->setText(pTextOutput);​​
          I don't know if there is another API that I should use.


          Pasting is done like this

          Code:
          QString qstring;
          QClipboard *pclipboard;
          
          pclipboard=QApplication::clipboard();
          
          qstring=pclipboard->text();        //Now we have the text in qstring

          Comment

          Working...
          X