为 KDE Plasma 最后一个支持 X11 的版本做准备
Preparing for KDE Plasma's Last X11-Supported Release

原始链接: https://blog.davidedmundson.co.uk/blog/596/

KDE 已正式宣布将淘汰 Plasma X11 会话。从预计于五个月后发布的 Plasma 6.8 开始,登录界面将不再提供 X11 会话选项,所有与 X11 相关的代码也将从 Plasma Shell 和设置中移除。 此次转型是一个重要的里程碑,它使开发人员无需再维护双重代码路径,能够全身心投入到 Wayland 的开发中,从而提供更好的性能和新功能。尽管如此,XWayland 支持仍将保留,以确保现有的 X11 应用程序能够继续顺畅运行。此外,KDE 应用程序在其他桌面环境中仍将保持对 X11 的兼容性,登录管理器也将继续为其他桌面环境提供 X11 会话支持。 内部数据显示,超过 95% 的 Plasma 6.6 用户已经迁移至 Wayland,这表明该平台已基本被开发者弃用。虽然团队承认部分工作流程可能需要调整,但他们仍致力于解决遗留痛点。鼓励遇到问题的用户在 Plasma 6.8 发布前反馈,以助力实现向全 Wayland 未来的平稳过渡。

KDE Plasma 即将放弃 X11 支持并全面转向 Wayland 架构的举动,在 Linux 社区内引发了激烈争论。支持者认为,Wayland 提供了更优越的性能、更平滑的帧速率以及 HDR 等现代化功能。然而,批评者(尤其是依赖 Talon 等特定辅助工具的用户)则担心 Wayland 严格的安全模型会破坏其核心功能。 此次讨论主要聚焦于以下三个矛盾点: 1. **辅助功能与兼容性:** 依赖特定工具进行输入、窗口管理或远程桌面操作的用户担心被“抛弃”,因为这些工具在 Wayland 的限制性协议下往往难以运行或完全失效。 2. **标准碎片化:** 批评者认为 Wayland 的设计迫使开发者针对特定的合成器(如 GNOME 或 KDE)进行开发,而非面向统一的“Linux 桌面”,这导致了生态碎片化。 3. **稳定性与进步:** 尽管许多用户表示 Wayland 在现代硬件上运行良好,但也有人指出在窗口布局、屏幕共享和多显示器配置方面仍存在反复出现的倒退问题。 尽管 KDE 团队坚称专注于单一代码路径将带来长远的收益,但许多用户认为此次转型为时过早,使高级用户和有特殊辅助需求的人群面临缺乏可靠替代方案的困境。
相关文章

原文

When we first announced the transition to Plasma Wayland, one of Martin's slides from stated, "It's done when it's done!"

That talk was 15 years ago!

Nothing in software is never truly "done", but as announced previously we are finally at a point where we're ready to retire the X11 and put all our focus on the future.

As of today, the Plasma X11 session you can log into has been officially removed, and we will start a mass cleanup of X11-specific code soon.

When does it take effect?

This change will be included in Plasma 6.8, which will be released in around five months.

What's Changed?

In Plasma 6.8, there will be no X11 session in the login screen. There will only be a Wayland session available to log into.

In 6.8, all X11-specific code paths in Plasma for Plasma Shell, System Settings, and device configuration will be gone.

What's stayed the same?

XWayland support remains present. You can keep using your X11 applications, and our XWayland application support is second-to-none.

If you use KDE applications on another desktop environment, this change will have no effect. KDE applications will continue to work in X11 for the foreseeable future.

Plasma Login Manager will continue to be able to log you into X11 sessions of other desktop environments.

What's Next?

The possibilities this opens up are very exciting. Until now, on the desktop side, we've had to target the lowest common denominator or be stuck trying to maintain two conflicting code paths. It was absolutely the right choice to do a gradual transition and approach things this way, but that approach has its limits.

Moving forward with a single code path going through Wayland is going to allow us to bring new performance improvements, memory optimisations, and brand new exciting features throughout Plasma.

How Ready Are We?

Our internal metrics within KDE show that over 95% of users of Plasma 6.6 are on Wayland, with a gradual increase every release. The metrics also show that basically no one is testing or developing Plasma on X11 anymore. The platform was already, for all intents and purposes, abandoned by KDE contributors.

We have every reason to trust this metric data, as it is exactly in-line with what Sentry (our automatic crash reporting tool) reports for newly-encountered crashes shows.

For transparency, the one caveat in all of the above is that I've deliberately always focused on people using the latest Plasma release. We do still have a sizable chunk of users on X11 still using Plasma 5.27. Including them, the total Wayland adoption rate is about 76%. But back then, Wayland wasn't the default session type, so it's hardly a surprise those users are still on X11. Things have come a massively long way in the three years since Plasma 5.27 was released.

Anyone still using Plasma 5.27 — or any release older than Plasma 6.8 — won't be affected by what we do in Plasma 6.8, and nothing will be applied retroactively.

Still Have Issues with Wayland on 6.7?

Whilst we have had full confidence since Plasma 6.0 that our Wayland session provides the better overall experience, we are aware that things don't behave exactly the same. Not everything works the same especially in specialised areas.

We are not expecting a completely seamless transition for everyone. Custom scripts, tools used and even workflows might have to change. But we are aiming to offer a transition where there is still a way to accomplish all your day-to-day tasks.

Plasma 6.7 is the last release that will include an X11 session, and it's coming out in just a few days. If you still have issues that force you back to X11 we would love to hear from you.

We can't promise to get everything fixed in time for 6.8, but we can promise to listen and be aware. People's remaining pain point are and will be on our radar, so please take this time to communicate them.

联系我们 contact @ memedata.com