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

Jeremy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Debian testing              |Arch Linux
      Version First|unspecified                 |6.17.0
        Reported In|                            |
                 CC|                            |[email protected]

--- Comment #4 from Jeremy <[email protected]> ---
Flameshot uses KSystemClipboard provided by KGuiAddons. After porting to Qt6
our clipboard functionality stopped working on gnome + wayland. This error is
reported:

```
kf.guiaddons: Could not init WaylandClipboard, falling back to QtClipboard.
```

I then wrote a very minimal working example to demonstrate this bug. If this
code is executed on Gnome + Wayland the same error is printed to the terminal.
Unfortunately falling back to QtClipboard does not work on gnome + wayland. Is
this user error on my part with how we are using the clipboard or is there an
underlying issues?

```
#include <QApplication>
#include <KSystemClipboard>
#include <QDebug>
#include <QGuiApplication>

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);

    auto clipboard = KSystemClipboard::instance();
    if (!clipboard) {
        qDebug() << "Failed to get KSystemClipboard instance";
        return 1;
    }

    qDebug() << "KSystemClipboard initialized successfully";
    return 0;
}
```

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

Reply via email to