News for hackers. Stuff that matters.
Re:Libwsm: Wayland Security Module library for Wayland compo... by nextaccountic on Sunday July 18, 2021 @11:31PM (#27878986)
Last commit, 2016. Last issue, 2018. Open issues in 2014 "verify compatibility with {KDE,Gnome,etc}" and no comments. :(

It's so so so frustrating the current state of Wayland fragmentation. X11 wasn't secure, but at least it worked.

Re:Libwsm: Wayland Security Module library for Wayland compo... by Jasper_ on Monday July 19, 2021 @11:24AM (#27883652)
I was against this approach at the time and made my concerns known. I don't think narrow module-like security is a good implementation idea, and as far as I know, none of the other desktops disagreed with me.

https://lists.freedesktop.org/archives/wayland-devel/2014-Fe...

Re:Libwsm: Wayland Security Module library for Wayland compo... by buu700 on Monday July 19, 2021 @12:02AM (#27879125)
Agreed. I wonder if there just isn't enough funding and developer interest to follow through on the ambitious goals of Wayland in a more reasonable time frame because of the maturity and increasing Unixyness of macOS and Windows.

Personally, I can't wait for the transition to finally end and for the Wayland ecosystem to achieve similar levels of maturity to X11. I've been donating to marcan's Patreon since the M1 was announced, and now that I own an M1 I intend to switch (back) to Linux when and if it becomes clear that everything will work smoothly (in terms of both hardware support and desktop Linux/Wayland in general).

Re:Libwsm: Wayland Security Module library for Wayland compo... by samus on Tuesday July 20, 2021 @06:21AM (#27891952)
The issue with Wayland + Security is that nobody can really focus on it yet. Wayland works for like 90% of use cases, but X already works for something beyond 99.9% (rough numbers, I know). Until Wayland has caught up on the reliability front, new security features are probably on the backburner.
Re:Libwsm: Wayland Security Module library for Wayland compo... by UberIsAnnoying on Monday July 19, 2021 @08:52AM (#27882080)
Re:Libwsm: Wayland Security Module library for Wayland compo... by na85 on Monday July 19, 2021 @12:46AM (#27879345)
Wayland is a great example of why Linux is always an also-ran in the desktop space.

X is cool and has the cachet of being such a venerable piece of software, but it needs replaced. If you actually talk to people who hack on X you'll find (for example) that it's been client-server in name only for quite some time, is full of kludges, etc.

Wayland has been around for what, 12 years now? It's still a disaster.

When will the Linux community admit that Wayland has failed and move on to something simpler/less ambitious?

Re:Libwsm: Wayland Security Module library for Wayland compo... by WastingMyTime89 on Monday July 19, 2021 @02:48AM (#27879904)
> Wayland has been around for what, 12 years now? It's still a disaster.

Define disaster. Because it's been working fine on my machine under Gnome 3 for years now and now that we have PipeWire that includes everything we could do before working in a nicer way.

I don't know why people comment under post about abandoned very technical library like if they were in any way significant.

Wayland just works. Just install Fedora or Ubuntu. It ships by default.

Re:Libwsm: Wayland Security Module library for Wayland compo... by chrismorgan on Monday July 19, 2021 @07:15AM (#27881276)
After a few years on Windows I recently returned to Arch Linux which I previously used with the i3 tiling window manager, and am now using Sway (a Wayland port of i3). It generally works well, but there are many applications that I have to fiddle with to get to work properly.

Firefox is still X by default, meaning to me most significantly no high-DPI support or precise scrolling. You can force it to use Wayland via the MOZ_WAYLAND_ENABLE environment variable, but it still has definite issues, like popup windows not being marked as popups, with effects like notifications being added to the non-floating windows and taking focus, rather than floating in the corner of the screen undecorated. (I use Nightly and am test-driving the process-per-site thing and it’s currently got other issues that are probably Wayland-specific, but that’s what you get for using prerelease stuff.)

Audacity has utterly crippling issues when run Wayland-native (its default). So I have a wrapper script that first clears the WAYLAND_DISPLAY environment variable so it will use XWayland, where it has fewer issues (it’s still pretty bad in places, e.g. all popup windows are start out at the minimum possible size and have to be resized before you can interact by anything other than keyboard, but I’m running high-DPI XWayland patches and I suspect this is at least partly due to bugs in that).

Krita I need to set QT_SCALE_FACTOR to match my XWayland scaling (a high-DPI thing). Note that I can’t set this globally, or else Qt apps that can run under Wayland (e.g. Zeal) will be huge.

cq-editor (CadQuery) crashes in Wayland and must be run with `--platform xcb` or with WAYLAND_DISPLAY unset. (Upstream’s distribution is built against a Qt that is not Wayland-enabled, so the problem actually doesn’t arise there, but if you build your own it’ll probably be Wayland-enabled.)

Zoom has taken to crashing on joining meetings under Wayland, and only implements some GNOME-specific screen sharing rather than xdg-desktop-portal screen sharing which is, I believe, what everyone else settled on—showing the internal fragmentation problem of Wayland. So because of the crashes, I run Zoom under XWayland, not even losing screen sharing because it was already broken. (Firefox and Chromium do screen sharing without any trouble, but only of whole outputs, not individual windows.)

But on the other hand, a few days ago I started i3 so I could do screen sharing on Zoom (of a second display, HDMI-A-1, 1920×1080@60Hz; main display eDP-1 being 2560×1440@165Hz), and ugh, the tearing! Full screen updates in Alacritty pretty consistently do the top half in one frame and then the bottom half in the next frame, and the block cursor moving while typing is super glitchy. I had forgotten how bad this stuff was because Wayland does it perfectly.

Re:Libwsm: Wayland Security Module library for Wayland compo... by WastingMyTime89 on Monday July 19, 2021 @10:25AM (#27882955)
> returned to Arch Linux which I previously used with the i3 tiling window manager, and am now using Sway (a Wayland port of i3). It generally works well, but there are many applications that I have to fiddle with to get to work properly.

Weird cobbled together configuration using esoteric softwares will always have weird issues and things working like they were cobbled together. Just use a properly supported and cohesive desktop environment and everything will be fine.

Re:Libwsm: Wayland Security Module library for Wayland compo... by na85 on Monday July 19, 2021 @07:39PM (#27888530)
>esoteric softwares

Firefox is esoteric nowadays?

Re:Libwsm: Wayland Security Module library for Wayland compo... by chrismorgan on Monday July 19, 2021 @11:50AM (#27883955)
That these issues occur demonstrates a problem in the Wayland ecosystem, whether with compositors or individual apps. Compositors are supposed to be interchangeable from apps’ perspectives.

I believe the problems listed with Firefox, Audacity and cq-editor would apply to any Wayland compositor. I will note that once you’ve done MOZ_ENABLE_WAYLAND=1, the remaining Firefox problems are likely to be significantly less obvious in a non-tiling, purely-client-side-decorations window manager. That doesn’t stop them from being bugs.

For the Krita one, in a high-DPI environment you’ll either need to use unsupported patches on XWayland and worry about QT_SCALE_FACTOR, or use the stable version and get a terrible result that will be nigh unusable for certain purposes (though normally you’ll just call it ugly and annoying); whereas if you use X right through, you can have proper high-DPI.

The Zoom crash, who knows; I certainly don’t, since they don’t make it easy to inspect what’s going wrong. There’s a good chance it’d work properly under at least GNOME.

For comparison, under i3 I don’t think I ever experienced general issues like these (that would apply to all WMs), and experienced WM-specific issues only a few times, minor and workaroundable each time.

The distinct impression I’m getting is one of immaturity. I’m still using it, because it does solve a couple of things that X didn’t do well that I consider moderately important, and more importantly because I’m an intrepid idiot willing to put up with a lot in the name of daily-driving the future to help iron it out for others. (As another such thing, Firefox Nightly has been my daily driver for just over a decade except for a cumulative total of about a year.)

Re:Libwsm: Wayland Security Module library for Wayland compo... by neolog on Monday July 19, 2021 @05:57AM (#27880780)
Can you share screen on video chat?
Re:Libwsm: Wayland Security Module library for Wayland compo... by sterwill on Monday July 19, 2021 @07:14AM (#27881269)
I'm using Ubuntu 21.04 with Wayland and, yes, screen sharing works in Google Meet, Slack, and Zoom. I haven't tried Teams in a while, so I don't know about that.
Re:Libwsm: Wayland Security Module library for Wayland compo... by WastingMyTime89 on Monday July 19, 2021 @10:19AM (#27882886)
Yes, no issue whatsoever with the Teams webapp using Chrome.