---
title: "Linux when?"
description: "Zed's Linux port works by implementing GPUI's platform-agnostic `Platform` and `PlatformWindow` traits for Linux."
url: "https://swe.quest/articles/linux-when-b4f56402c8f35e78"
canonical: "https://zed.dev/blog/zed-decoded-linux-when"
source: "Zed"
published: "2024-05-07"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["rust","linux","frontend","open-source","developer-tools"]
---

# Linux when?

A post on [Zed](https://swe.quest/sources/zed.md), published 2024-05-07, 12 min read, Case study. Original: [https://zed.dev/blog/zed-decoded-linux-when](https://zed.dev/blog/zed-decoded-linux-when)

## Summary

Zed's Linux port works by implementing GPUI's platform-agnostic \`Platform\` and \`PlatformWindow\` traits for Linux. Three months after open-sourcing, Zed compiles and runs usably on Linux. The hard parts were the fragmentation of the Linux desktop (distributions, packaging, X11 vs Wayland, desktop environments, audio servers) and replacing the Metal renderer. Community contributor kvark solved rendering with Blade, a Vulkan-based GPU abstraction, and other contributors added Wayland support, file dialogs and input fixes behind a shared \`LinuxClient\` trait.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Rust traits ([easy posts on Rust](https://swe.quest/tags/rust.md?difficulty=easy))
- GPU rendering basics ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- X11/Wayland basics

## Keywords

Zed, GPUI, Blade, Vulkan, Wayland, X11, Metal

## Related posts

- [Zed Weekly: #22](https://swe.quest/articles/zed-weekly-22-1c922abde503e316.md): Zed · 2023-10-06 · Easy · 7 min read · Developer tools, Rust, Real-time systems, Product engineering
  Zed team members report weekly progress: GPUI is being rewritten with a ported Metal renderer that uses plane-split for primitive draw ordering, multi-threaded entity access, and a MainThread\<T: Context\> wrapper so native UI APIs are only called from the main thread.
- [Zed Weekly: #25](https://swe.quest/articles/zed-weekly-25-cd3a5f41d4f0b187.md): Zed · 2023-11-03 · Medium · 6 min read · Rust, Frontend, Refactoring & migrations, Developer tools
  Zed is rewriting its UI framework as GPUI 2 and porting the whole editor onto it before open-sourcing, trading feature work for better ergonomics while keeping GPUI 1's performance.
- [Leveraging Rust and the GPU to render user interfaces at 120 FPS](https://swe.quest/articles/leveraging-rust-and-the-gpu-to-render-user-interfaces-at-120-fps-8175e9071db5a167.md): Zed · 2023-03-07 · Hard · 16 min read · Performance engineering, Rust, Frontend, Hardware, Developer tools
  Zed's GPUI framework hits 120 FPS by rendering the editor UI like a video game: rather than a general-purpose 2D vector renderer (Pathfinder proved too slow), it uses dedicated GPU shaders for a small set of primitives such as rectangles, shadows, text, icons and images, all described as data on the CPU and drawn with instanced rendering.
- [Zed for Windows: What's Taking So Long?!](https://swe.quest/articles/zed-for-windows-what-s-taking-so-long-fce443a86971bc62.md): Zed · 2025-08-19 · Medium · 5 min read · Hardware, Developer tools, Performance engineering, Debugging
  Porting the Zed editor to Windows required a new DirectX 11 rendering backend with HLSL shaders, replacing Vulkan so it runs on nearly all Windows machines including VMs and uses less memory.
- [This Week at Zed Industries: #8](https://swe.quest/articles/this-week-at-zed-industries-8-7c421eb8ade6414f.md): Zed · 2023-06-23 · Easy · 4 min read · Developer tools, Performance engineering, Frontend, Rust
  Zed's weekly team update covers work on the AI assistant panel (multi-cursor, message splitting, saved conversations), voice collaboration via GPUI, and inlay hint latency and caching.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
