Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88293

Unable to add image to Clipboard with Fedora Gnome Wayland

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.9.4, 5.15.1
    • Fix Version/s: 5.15.2, 6.0.0 Beta2
    • Component/s: QPA: Wayland
    • Labels:
      None
    • Platform/s:
      Linux/Wayland
    • Commits:
      6c534941a3015ba529dd4a5c153cffa0e94af11a in dev, 51f0466e01df52eb07e589006744f405dfd40bdd in 5.15

      Description

      OS: Fedora 32/33
      DE: Gnome 3.38.0 Wayland

      We are facing an issue where we're unable to copy an Image to the Clipboard (via QClipboard) when running Gnome Wayland on Fedora. Copying text to the clipboard seems to be working. 

      Running XWayland (by setting env var QT_QPA_PLATFORM=xcb before starting the application) seems to fix the issue. Also starting the application with sudo fixes the issue too as it looks like.

      I have created a minimal example application and can reproduce the issue there. Clicking one of the buttons copies text or image to the clipboard. The current clipboard content is show in the window. Now when you try to paste the content somewhere outside the application, its working with the text but not with the image. 

      Example application: https://github.com/DamirPorobic/copyToClipboardNotWorkingOnFedoraWayland 

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              davidedmundson David Edmundson
              Reporter:
              dporobic Damir Porobic
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes