Building Corten Desktop: A Pure-Rust Wayland Desktop Environment with Smithay 0.7 & Iced 0.13
Over the past few months I've been building Corten Desktop (v0.5.8), an open-source, process-isolated Wayland desktop environment written in pure Rust - structured as a single 30-crate Cargo workspace with no wlroots C wrappers, no Electron/WebKit shells, and no Python/Bash glue scripts.
GitHub Repository: https://github.com/Shura5860/corten-desktop
Latest Release (v0.5.8): https://github.com/Shura5860/corten-desktop/releases/tag/v0.5.8
Why Build a Desktop Environment from Scratch in Rust?
Linux desktops usually fall into two camps: massive C/C++ monoliths, or DIY tiling window manager setups held together by dozens of unrelated utilities and fragile scripts.
Corten Desktop aims for a cohesive, memory-safe middle ground where the compositor, dock, launcher, notifications, file manager, settings, portals, and app store all share one workspace, one theme crate, and one IPC layer.
Architecture Highlights
- Compositor (
corten-compositor): Built directly on Smithay 0.7 with both a standalone DRM/KMS (udev+libseat+libinput+gbm+glow) backend and a nested Winit backend for development. Includes floating, master-stack, BSP, monocle, and scrollable-strip layouts, direct hardware scanout,linux-drm-syncobj-v1, adaptive tearing (wp_tearing_control_v1), XWayland, and custom GLSL ES Dual-Kawase blur/halo shaders. - Process-Isolated Shell (Iced 0.13 +
tiny-skia): Every component runs as its own binary (corten-panel,corten-launcher,corten-notify,corten-widgets,corten-lock,corten-greeter,corten-polkit,corten-portal,corten-wallpaper,corten-settings,corten-files,corten-monitor,corten-snipper,corten-forge,corten-ai). Rendering shell utilities withtiny-skiakeeps GPU VRAM dedicated to user apps and games. - IPC & Supervision (
corten-ipc,corten-session): Components communicate viazbus(D-Bus) and Unix JSON-RPC sockets, supervised bycorten-session. - Corten Forge & OTA (
corten-forge,corten-update): Built-in software center with live Flathub API v2 browsing/search, Flatpak sandbox inspection, Arch repository support, and SHA256-verified GitHub Release OTA updates. - Optional Local AI (
corten-llm,corten-vector,corten-ai): Pure-RustmmapGGUF inference + HNSW vector index for an offline desktop assistant.
Try It Out (v0.5.8)
Prebuilt x86_64 binary installer:
curl -fsSL https://raw.githubusercontent.com/Shura5860/corten-desktop/main/scripts/install-release-bin.sh | sudo bash
Fresh Arch Linux ISO (archinstall profile):
archinstall --config https://raw.githubusercontent.com/Shura5860/corten-desktop/main/packaging/arch/archinstall-corten.json
Build from source:
git clone https://github.com/Shura5860/corten-desktop.git
cd corten-desktop
cargo test --workspace
cargo build --release --workspace
Feedback, bug reports, and contributions are very welcome - especially from anyone testing on different GPUs or distros!
Comments
No comments yet. Start the discussion.