YAST fails to start graphically

Following a reboot afetr zypper dup today I am unable to start YAST from its icon or in a terminal as root. I run KDE btw.


Tumbleweed:/home/stuart # yast2
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.
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-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

/sbin/yast2: line 455:  4047 Aborted                 (core dumped) $y2ccbin $Y2UI_ARGS "$@"
Tumbleweed:/home/stuart #

Anyone any ideas please?

Stuart

Are you up-to-date with a

zypper dup

?

I did say following a zypper dup today in my initial post, which BTW worked fine and another just to make sure now says nothing to do.

Stuart

Just tried again and no I have not rebooted again and this time YAST started fine from the icon. Go figure.

Stuart

My fault, sorry for that. :shame:

Maybe my stupid post had a healing influence by magic?

This has been happening to me under Gnome for the past few Tumbleweed releases (most recently on snapshot 20190514). Here’s the error output:

> gnomesu yast2

(gnomesu:3710): Gtk-WARNING **: 23:04:04.172: 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: 3744 Aborted (core dumped) $y2ccbin $Y2UI_ARGS “$@”

Any ideas?

You’re using Wayland … if you try to login to select Xorg, and then start them from Yast

I use:

xhost +SI:localuser:root

so that the root user can open X11 windows in my session. It happens in the Gnome-Wayland session, but not in Plasma-Wayland sessions.

xhost did the trick. Thanks!