Bug 1134797

Summary: Yast2 won't load in Wayland session, 'xhost +' works temporarily
Product: [openSUSE] openSUSE Tumbleweed Reporter: Jeff J <jeffj1101>
Component: GNOMEAssignee: Hans Petter Jansson <hpj>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: dimstar, elimat, fvogt, guillaume.gardet, jeffj1101, martin.liska, michiel, sreeves, yfjiang
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
See Also: http://bugzilla.opensuse.org/show_bug.cgi?id=1128193
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jeff J 2019-05-11 19:39:42 UTC
On Tumbleweed 20190509, YaST2 (GUI) does not open in Gnome Wayland Session. It works in X11 session. In the Wayland session, running 'xhost +' or 'xhost si:localuser:$USER' on the terminal loads YaST2 but this fix is not persistent across boot. This is not a problem in Leap 15. 

Running YaST2 through 'xdg-su -c yast2' provides the following:

_______________________________________________________________________________
jeff@jeffpc:~> xdg-su -c yast2

(gnomesu:13236): Gtk-WARNING **: 20:37:33.321: gtk_window_set_titlebar() called on a realized window
No protocol specified
No protocol specified
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
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, xcb.

/sbin/yast2: line 461: 13264 Aborted                 (core dumped) $y2ccbin $Y2UI_ARGS "$@"
________________________________________________________________________________

My system information:

NAME="openSUSE Tumbleweed"
# VERSION="20190509"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20190509"
PRETTY_NAME="openSUSE Tumbleweed"
Comment 1 Martin Vidner 2019-05-13 08:04:11 UTC
Thanks for the report!

Do you have the Wayland backend for Qt installed?
rpm -q libqt5-qtwayland
Comment 2 Martin Liška 2019-05-13 14:56:17 UTC
I see the same issue and I can confirm that installation of the package libqt5-qtwayland works for me.
Comment 3 Jeff J 2019-05-13 20:49:52 UTC
(In reply to Martin Vidner from comment #1)
> Thanks for the report!
> 
> Do you have the Wayland backend for Qt installed?
> rpm -q libqt5-qtwayland

Sorry, I do not have access to the Gnome TW installation currently to test this. Looks like Martin Liška's comment answers your question. If that is the case, then perhaps the libqt5-qtwayland should be installed by default? 

Regards,
Jeff J
Comment 4 Fabian Vogt 2019-05-16 08:09:03 UTC
Qt5 is configured to use XCB by default and wayland only as fallback (this will likely change with Qt 5.13 at some point).

The issue here seems to be that xdg-su broke with X11 on GNOME with Xwayland, so reassigning.
Comment 5 Martin Vidner 2019-05-17 07:53:58 UTC
*** Bug 1135104 has been marked as a duplicate of this bug. ***
Comment 6 Dominique Leuenberger 2019-05-17 08:17:31 UTC
@hpj,

this is your xauth patch in gdm/mutter that got disabled (and not rebased in time for 3.32). Can you please have a look at this?

Keep in mind that TW currently still runs GDM 3.28 (due to other issues around GDM 3.32) - in combination with mutter 3.32
Comment 7 Yifan Jiang 2019-05-27 02:09:58 UTC
Xiaoguang has helped to handle the issue at:

https://build.opensuse.org/request/show/705111

So I am closing it. Thank you everyone!
Comment 8 Martin Vidner 2019-05-30 13:26:47 UTC
*** Bug 1136647 has been marked as a duplicate of this bug. ***