Problem with KSystemLog on Plasma(Wayland) - 64 current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem with KSystemLog on Plasma(Wayland) - 64 current
From the menu, the box for authentication disappears when OK is clicked, but the GUI does not appear. Trying to open from the terminal as root results in this message:
Code:
root@slackpad1:~# ksystemlog
No protocol specified
qt.qpa.xcb: could not connect to display :1
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: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted
Haven't tried any other KWhatevers that require root. No problem on Plasma without Wayland.
From the menu, the box for authentication disappears when OK is clicked, but the GUI does not appear. Trying to open from the terminal as root results in this message:
Code:
root@slackpad1:~# ksystemlog
No protocol specified
qt.qpa.xcb: could not connect to display :1
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: wayland-org.kde.kwin.qpa, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
Aborted
Haven't tried any other KWhatevers that require root. No problem on Plasma without Wayland.
Well, because of the Nazi security on Wayland, there are no ways yet to run a program as another user on a Wayland/Plasma5 session, for example: ksystemlog as root.
However, there's a workaround, brought to us by openSUSE: to add on KWin the XAuthority support to XWayland via a patch.
The name of wanted patch is: 0001-Use-Xauthority-for-Xwayland.patch
To use it you should build your own KWin package, which starts with copying the "kde" build system from -current to somewhere else and to add into a file: patch/kwin.patch
Code:
# Use Xauthority for Xwayland authorization
cat $CWD/patch/kwin/0001-Use-Xauthority-for-Xwayland.patch | patch -p1 --verbose || { touch ${SLACK_KDE_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
Of course, the 0001-Use-Xauthority-for-Xwayland.patch should be put on a folder named: patch/kwin
Finally, from the base directory you execute the following command:
Code:
./kde.SlackBuild plasma:kwin
When the KWin package finishes to build, it will upgraded automatically, so all you have is to enjoy your XAuthority on Wayland, after a reboot - as you see in the attached screenshot.
PS. I know about this patch since long time - since Plasma5 was still on KTown, and I really hopped always to be added to our Plasma5 build, because it adds a very useful "missing feature" to Wayland/Plasma5.
PS2. If you wonder what bussines have KWin with the running graphical programs as another users - it have, as strange as it looks, because on the Wayland/Plasma5 this KWin is not only the windows manager but also the display server.
Last edited by LuckyCyborg; 01-16-2021 at 08:32 PM.
Thanks, LuckyCyborg. What, if any, are the advantages of Wayland? I haven't noticed any differences in performance or appearance between Plasma(Wayland) and Plasma. Don't think I'll go to the trouble of patching & rebuilding KWin. It's certainly crazy security if I can't run it as an "ordinary" user OR root. WhoTF can run it?
Thanks, LuckyCyborg. What, if any, are the advantages of Wayland? I haven't noticed any differences in performance or appearance between Plasma(Wayland) and Plasma. Don't think I'll go to the trouble of patching & rebuilding KWin. It's certainly crazy security if I can't run it as an "ordinary" user OR root. WhoTF can run it?
Well, from what I read and understand, the X11 and/or X.org server is a mammoth stuffed with spaghetti code and having more bugs than a stray dog. In the end, the developers of this ancient technology trowed the towel, pointed that the thing is unmaintainable and they started to develop the Next Generation of Display Server for Linux: Wayland.
Also, looks like the X.org server is about to be abandoned by RedHat (which maintains it) in favor of Wayland.
First of all, I believe that we should adapt. What you heard about XFree86 in the least times? And how compatible will be a XFree86 server with the modern Linux?
Yes, XFree86 gone on the path of Dodo bird after the businesses stopped to throw money at it. This is about to happen also to Xorg and IF we will not adapt to Wayland, in few years probably we will become an ancient Linux.
What are the advantages of Wayland, after all, in my humble opinion of regular user?
They say that it is much smaller, just some core features, then the desktop environments are free to implement what features they want. For example (as it is the subject of this thread) they believe that XAuthority is not a Wayland core business, but of the Wayland compositors, which essentially are the real display servers.
So, on Plasma5 the display server is KWin, while in Gnome3 is Mutter. For those who wants lightweight solutions, there's Sway.
Every one has its own set of features, they are uber-integrated on their desktop environment, and they have the freedom to implement what features they likes.
So, in my humble opinion, the first advantage of Wayland is its versatility. Everybody have the freedom to implement their display server as they like. Be it the KDE's Plasma5 or RedHat's Gnome3, or whatever.
The second advantage of Wayland looks being the security. Every window is just stand-alone, eventually talking via the display server for information. To imagine how secure is Wayland, to note that they had to screencast the windows via an Audio/Video server - PipeWire, to get working a rather puny feature of Plasma5: the taskbar thumbnails.
BUT, there's also an big disadvantage, which you just hit: every desktop environment feature previously offered by Xorg should be eventually recreated by every interested Wayland compositor.
The Wayland has no idea how to run a graphical application as another user, like is yours KSystemLog - and IF there is a Wayland feature which permits this, it should be implemented by the Wayland compositor as it likes, via an Wayland extension.
So, the sad truth is that the KDE developers hired to develop Plasma5 does not thought that running graphical programs as another user is a useful feature to be implemented. Personally I blame them to still having wet dreams about smartphones with KDE Plasma - as if they will ever succeed where the almighty Microsoft failed.
Fortunately, we have a solution: a patch made and maintained by openSUSE.
But there are some other missing features for which we have no solution yet - even the Wayland/Gnome3 have them: the proper restoring of windows sessions and proper restoring the windows position.
And at the end of day, is not the Wayland fault, but the KDE fault.
Last edited by LuckyCyborg; 01-17-2021 at 07:08 AM.
One thing I prefer about the non-Wayland Plasma is the inclusion of a Gamma control option in the Display and Monitor settings. Lowering it improves the rather washed-out look of Thinkpad screens (which is what I'm running current on: T410 & X200).
One thing I prefer about the non-Wayland Plasma is the inclusion of a Gamma control option in the Display and Monitor settings. Lowering it improves the rather washed-out look of Thinkpad screens (which is what I'm running current on: T410 & X200).
That works in Wayland/Gnome3 as I tested myself on Ubuntu.
BTW, you can believe that even Sway has this particular feature on Wayland since some fraking FOUR years?
So it's up to the KDE Plasma developers to sort it out. When I did a websearch on the problem I found loads of results - same basic problem, different applications, different distros, etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.