r/Fedora • u/pilkyton • 14h ago
Discussion Thoughts on Fedora's role in standardizing the modern Linux desktop stack
Taken from a very interesting post on the Fedora forums. I think it's a great example of how Fedora has shaped modern Linux and how thankful I am that they move us forward even when it briefly hurts a little. :)
---
Fedora is known for being a distro that puts leading-edge features first. It's been the first to adopt a lot of very important technologies that are now used everywhere.
Systemd, Wayland, Pipewire, Podman and XDG Desktop Portals are the 5 best things that have happened to Linux besides the kernel itself.
Systemd:
- Finally made init robust on Linux. Replaces fragile init scripts (hacky subshells, fragile and outdated boilerplate code, basic "sleep" commands for timing, constantly calling external executables like cat/grep/wget whose versions and bugs differ on all distros, piping things between their executables, using PID files, etc).
- Thanks to Systemd, all our services now launch via native (well-written) C code instead, which starts all services very quickly, in parallel, on-demand, in the correct order, when required resources are ready (devices, networks, etc), without any bugs (double-starts, race conditions, false starts, etc). It also uses cgroups and namespaces to securely isolate the scope of services, to limit the harm if a service is hacked.
- It also finally allows users to effortlessly create their own services/on-demand sockets with just a few lines of easy text.
- Arch's primary init maintainer described the incredible freedom of finally switching to Systemd 11 years ago: https://www.reddit.com/r/archlinux/comments/4lzxs3/comment/d3rhxlc/
- NixOS core developer simply says "there's nothing better out there" (true): https://www.reddit.com/r/archlinux/comments/4lzxs3/comment/d3rlwap/
- It keeps growing because the most efficient way to implement various core system extras is to add them to systemd, which is a kind of supervisor for the whole system now. That's a good thing. It means more stability, more integration, more security.
- It is now used by almost every distro in the world, and all of the major ones. Trust me, they are not all wrong.
Wayland:
- Finally replaced 39 years of unmaintainable, hacky spaghetti code (X11). That's why practically every X11 developer moved on to working on Wayland. The X11 architecture is a dead end and can't be extended anymore to support modern features like per-monitor DPI, per-monitor refresh rates, and clean implementations of everything that X11 had to hack onto an ancient 1987 protocol.
- Yes, it's true that Wayland can't use a remote display as its display server. That's the one major criticism I hear all the time. I'm sorry but so what? You can use VNC desktop sharing. We're not in 1987 anymore. Furthermore, X11 display server forwarding (remote desktop) is extremely slow, bloated, laggy and inefficient and gives a much, much, much worse experience than a Wayland remote desktop. You can even play 3D games in realtime on a Wayland VNC connection (using one of the video-encoding based desktop streaming protocols).
Pipewire:
- Finally solved the mess of JACK, ALSA, Pulse and all other audio handlers, with a single protocol that can handle both low-latency and normal audio, along with video streams and anything else you need to securely transfer between apps.
- Has extremely advanced routing, letting apps seamlessly hook in and add their own virtual audio devices, so that we get things like EasyEffects which effortlessly improves your audio quality by processing your mic/headphone streams with custom effects. We can finally sound as clear and good as Windows users (who all have built-in effects in their audio drivers tuned by the computer manufacturers, which is where the common phrase "my speakers/microphone sounds worse on Linux" comes from, but EasyEffects can fix that).
Podman:
- When everyone else went all-in on docker (running as root, very dangerous), Fedora went all-in on Podman (rootless user-level containers) instead. Podman was created by Red Hat and Fedora engineers.
- Technologies like Podman Quadlets (which use Systemd under the hood) make it effortless to set up containers that auto-update themselves with security fixes and are continuously monitored by systemd to ensure they stay healthy.
- Podman is objectively better and safer than Docker in every way.
XDG Desktop Portals:
- Finally allows us to sandbox desktop applications to protect ourselves against malware (as Linux gets more and more popular and has zero protections against infostealers, cryptominers, etc). We only give access to the exact files, sound devices and screen sharing that an application needs, thanks to portals and things like Pipewire.
- Sandboxing has become extremely important now in the dawn of constant AI agents finding exploits anywhere, combined with the huge growth of Linux popularity. After malware has installed itself in your desktop user account on Linux, you'll pretty much never find it no matter how skilled you are, since Linux lets processes rename themselves, spoof their command line binary and arguments (seen in "ps" and /proc), etc. User-level malware processes can even impersonate kernel processes such as "[kworker]" effortlessly. From there, the malware can just sit and spy and exfiltrate your personal files or whatever it wants to do. So yeah, it's time to take sandboxing (such as Flatpak) very seriously to limit the attack surface of your desktop machines.
With all of these decisions, Fedora sometimes adopted things before they were 100% ready. That's okay. That's how we finally get the ball rolling on moving the Linux desktop forwards. And here we are. Now almost every distro relies on technologies that Fedora was the first to adopt and helped shape.
Soon we may even count Flatpak on that list, but I'm waiting to see if the upcoming Flatpak 2.0 becomes the ultimate packaging format. It will have enhanced security and stability for nested sub-sandboxes (to allow things like Steam and Chromium sandboxes to work optimally), much better D-Bus security, and it will be based on OCI containers to allow distribution via widely available infrastructure (rather than just OSTree repositories). It's under active design, and it will use a new "systemd-appd" service to control its security model.
So yeah... the train of progress keeps moving and it's not going to stop! All aboard!