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

            Bug ID: 371561
           Summary: Appimage aborts when started on Wayland
           Product: krita
           Version: 3.0.1.1
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: krita-bugs-n...@kde.org
          Reporter: mgraess...@kde.org

When trying to start Krita (appimage) on Plasma Wayland the application aborts
and doesn't start:

./krita-3.0.1.1-x86_64.appimage 
QCoreApplication::arguments: Please instantiate the QApplication object first
krita.lib.pigment: Compiled for arch: 7
krita.lib.pigment: Features supported:
krita.lib.pigment:       "SSE2"         ---      yes
krita.lib.pigment:       "SSSE3"        ---      yes
krita.lib.pigment:       "SSE4.1"       ---      yes
krita.lib.pigment:       "AVX "         ---      yes
krita.lib.pigment:       "AVX2 "        ---      yes
This application failed to start because it could not find or load the Qt
platform plugin "wayland"
in "".

Available platform plugins are: minimal, offscreen, xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)



Reproducible: Always

Steps to Reproduce:
1. Start a Plasma/Wayland session
2. Download Krita appimage
3. Try to run the appimage

Actual Results:  
Abort

Expected Results:  
Starts

It looks to me like the appimage has Qt bundled but does not include QtWayland.
That's fine, at the moment Krita wouldn't run on Wayland anyway due to missing
tablet support in Qt. Given that I suggest to add the following to Krita prior
to instancing the QApplication:

#if HAVE_X11
qputenv("QT_QPA_PLATFORM", "xcb");
#endif

This will ensure that the appimage doesn't crash on Wayland.

Please note that the next Fedora Workstation release will default to Wayland. I
highly recommend to fix this issue prior to Fedora release.

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

Reply via email to