-
Notifications
You must be signed in to change notification settings - Fork 217
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
Detect wayland and make sure X rendering is used. #1253
Conversation
rviz2 does not work under wayland unless using X compatibility. The current workaround on wayland is to set the QT_QPA_PLATFORM environment variable to xcb. This patch now detects if rviz2 is started in a wayland session and if so sets that variable automatically. Signed-off-by: Matthew Elwin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a workaround, that I'm fine with it for now, but we should work on natively support Wayland. @clalancette anything else to add ?
No, seems reasonable to me for now. I think we should also backport this to Jazzy. |
https://github.com/Mergifyio backport jazzy |
✅ Backports have been created
|
rviz2 does not work under wayland unless using X compatibility. The current workaround on wayland is to set the QT_QPA_PLATFORM environment variable to xcb. This patch now detects if rviz2 is started in a wayland session and if so sets that variable automatically. Signed-off-by: Matthew Elwin <[email protected]> (cherry picked from commit 72c0826)
rviz2 does not work under wayland unless using X compatibility. The current workaround on wayland is to set the QT_QPA_PLATFORM environment variable to xcb. This patch now detects if rviz2 is started in a wayland session and if so sets that variable automatically. Signed-off-by: Matthew Elwin <[email protected]> (cherry picked from commit 72c0826) Co-authored-by: Matthew Elwin <[email protected]>
This patch causes rviz to detect Wayland and sets it to X compatibility mode, enabling it to run under Wayland.
Currently rviz2 does not support wayland (Issue #847), meaning that rviz2 crashes (e.g., issue #1227, #1245) for Wayland users unless they do a manual workaround.
The current workaround of setting QT_QPA_PLUGIN has a few issues that make it less than ideal: