[Bug 1176626] New: problem with flatpak and QT_QPA_PLATFORM on Wayland
http://bugzilla.opensuse.org/show_bug.cgi?id=1176626 Bug ID: 1176626 Summary: problem with flatpak and QT_QPA_PLATFORM on Wayland Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: dfaggioli@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- the Telegram flatpak does not start, if within a GNOME Wayland session. Trying to start it manually, this is the output: flatpak run org.telegram.desktop (process:2): Telegram-WARNING **: 16:39:07.608: Unfortunately, GTK integration conflicts with qgtk2 platformtheme and style. Therefore, QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE will be unset. Telegram-Message: 16:39:07.609: This can be ignored by setting TDESKTOP_I_KNOW_ABOUT_GTK_INCOMPATIBILITY environment variable to any value, however, if qgtk2 theme or style is used, this will lead to a crash. Telegram-Message: 16:39:07.609: GTK integration can be disabled by setting TDESKTOP_DISABLE_GTK_INTEGRATION to any value. Keep in mind that this will lead to clipboard issues and tdesktop will be unable to get settings from GTK (such as decoration layout, dark mode & more). 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, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Trying to run it like this: QT_QPA_PLATFORM=wayland-egl flatpak run org.telegram.desktop it does start. On an Xorg session, it starts without issues. I'm reporting this here instead than to Telegram or flathub directly, is that installing exactly the same flatpak on, e.g., Fedora or Ubuntu works flawlessly while inside a Wayland session. So it feels like it's something specific to openSUSE. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176626 http://bugzilla.opensuse.org/show_bug.cgi?id=1176626#c1 Giuseppe Stoduto <gstoduto@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gstoduto@gmail.com --- Comment #1 from Giuseppe Stoduto <gstoduto@gmail.com> --- The same error occurs with the original program taken from the official website https://desktop.telegram.org/ If it starts from the terminal without any parameters it shows me this: Telegram ./Telegram Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Gtk-Message: 20:57:52.510: Failed to load module "unity-gtk-module" Gtk-Message: 20:57:52.515: Failed to load module "unity-gtk-module" Telegram-Message: 20:57:52.523: You can disable tray icon counter with TDESKTOP_DISABLE_TRAY_COUNTER and make it look better if it is monochrome. error: : cannot open error: : cannot open error: : cannot open The X11 connection broke (error 2). Did the X11 server die? to start the program you have to use the following command: Telegram QT_QPA_PLATFORM=wayland-egl ./Telegram showing this: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Using Wayland-EGL Telegram-Message: 21:01:39.534: You can disable tray icon counter with TDESKTOP_DISABLE_TRAY_COUNTER and make it look better if it is monochrome. error: : cannot open error: : cannot open error: : cannot open Using the 'xdg-shell' shell integration but in this case the copy and paste doesn't work showing me these errors: qt.qpa.wayland: Non-toplevel surfaces can't request window states qt.qpa.wayland: Wayland does not support QWindow::requestActivate() qt.qpa.wayland: setGrabPopup called with a parent, QtWaylandClient::QWaylandXdgSurface(0x966c710) which does not match the current topmost grabbing popup, QtWaylandClient::QWaylandXdgSurface(0x9305f90) According to the xdg-shell protocol, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly because xdg-shell mandate that child popups close before parents -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176626 http://bugzilla.opensuse.org/show_bug.cgi?id=1176626#c2 --- Comment #2 from Dario Faggioli <dfaggioli@suse.com> --- I can also add that, on Leap 15.2, at least for the flatpak version, all is fine. The app start regularly, without any need to fiddle with the environment variables, within a GNOME Wayland session -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176626 http://bugzilla.opensuse.org/show_bug.cgi?id=1176626#c3 Martin Torres <emtorres@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emtorres@opensuse.org --- Comment #3 from Martin Torres <emtorres@opensuse.org> --- Same problem with telegram-desktop 2.3.2-1.1 in Tumbleweed. I think it's a problem with xwayland 1.20.9. Upstream bug report: https://github.com/telegramdesktop/tdesktop/issues/8506 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1176626 http://bugzilla.opensuse.org/show_bug.cgi?id=1176626#c5 --- Comment #5 from Marcel Kuehlhorn <tux93@opensuse.org> --- A patched version is in review: https://build.opensuse.org/request/show/838804 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com