Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solution found, add to documentation?] Missing window top bar in GNOME Wayland #1321

Closed
dariox86 opened this issue Sep 2, 2024 · 2 comments
Labels
enhancement needs-triage Issue has yet to be looked at by a maintainer

Comments

@dariox86
Copy link

dariox86 commented Sep 2, 2024

EDIT: I just found a solution: instead of QT_QPA_PLATFORM=wayland I need to set QT_QPA_PLATFORM=wayland-egl. Perhaps a disclaimer in a FAQ or something could help someone else with the same issue.

Description

On Parabola GNU/Linux-libre with GNOME on Wayland session, the top bar of the application is missing. Running the application with XWayland the top bar is shown as expected. I am filing this as a feature request because even though this could be an issue on my end that could be fixed with some tinkering, other Qt 6 applications work out of the box.

angr-management

Alternatives

On Ubuntu 24.04 it works out of the box, but on my environment this may need some tinkering to make it work.

Additional context

I carried out several tests with packages from every distribution up to date as of this writing with angr Management v9.2.117 for Ubuntu 22.04.

Parabola GNU/Linux-libre with GNOME, Wayland session, Wayland packages for Qt 5 and Qt 6 installed

$ export QT_QPA_PLATFORM=wayland
$ ./angr-management

Missing title bar (see picture above).

$ export QT_QPA_PLATFORM=xcb
$ ./angr-management

It works as expected with the title bar.

Ubuntu 24.04 with GNOME, Wayland session, Wayland packages for Qt 5 and Qt 6 installed

$ export QT_QPA_PLATFORM=wayland
$ ./angr-management

It works as expected with the title bar.

$ export QT_QPA_PLATFORM=xcb
$ ./angr-management

It works as expected with the title bar.

Ubuntu 22.04 with GNOME, Wayland session, Wayland packages for Qt 5 and Qt 6 installed

$ export QT_QPA_PLATFORM=wayland
$ ./angr-management

«Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" 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: wayland-egl, linuxfb, minimal, offscreen, wayland, xcb, vkkhrdisplay, minimalegl, eglfs, vnc.
Aborted»

$ export QT_QPA_PLATFORM=xcb
$ ./angr-management

It works as expected with the title bar.

openSUSE Tumbleweed with KDE Plasma, Wayland session, Wayland packages for Qt 5 and Qt 6 installed

$ export QT_QPA_PLATFORM=wayland
$ ./angr-management

It works as expected with the title bar.

$ export QT_QPA_PLATFORM=xcb
$ ./angr-management

It works as expected with the title bar.

@dariox86 dariox86 added enhancement needs-triage Issue has yet to be looked at by a maintainer labels Sep 2, 2024
@dariox86 dariox86 changed the title Missing window top bar in GNOME Wayland [Solution found, add to documentation?] Missing window top bar in GNOME Wayland Sep 2, 2024
@twizmwazin
Copy link
Member

We've had other issues with this before, eg #1268. At some point we will want to make sure that angr management works properly on wayland. For now, whenever someone has an issue I just instruct them to use X11 for the time being, which I understand is not an option at worst and sub-optimal at best.

@dariox86
Copy link
Author

Now it works with QT_QPA_PLATFORM=wayland as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs-triage Issue has yet to be looked at by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants