Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
And manually overriding doesn't help QT_QPA_PLATFORM=wayland flameshot
For me this patch works by removing "wayland_hacks":
Flameshot Version
3d21e496
Installation Type
Compiled from source
Operating System type and version
GNOME 45
Description
As of now flameshot explicitly doesn't allow to run in GNOME, native wayland mode (
DISPLAY=
) or in wayland-only session (gnome-shell --no-x11
). Please allow us to run in native Wayland (no XWayland). It should be up to user to specify QT_QPA_PLATFORM. https://github.com/flameshot-org/flameshot/blob/3d21e4967b68e9ce80fb2238857aa1bf12c7b905/src/main.cpp#L38-L45On launching it crashes and says:
And manually overriding doesn't help
QT_QPA_PLATFORM=wayland flameshot
For me this patch works by removing "wayland_hacks":
Steps to reproduce
Run GNOME in wayland-only with
gnome-shell --no-x11
run flameshot. It crashesScreenshots or screen recordings
No response
System Information
Arch Linux, GNOME 45