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

Unable to add image to Clipboard with Fedora Gnome Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.2, 6.0.0 Beta2
    • 5.9.4, 5.15.1
    • QPA: Wayland
    • None
    • Linux/Wayland
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes