Skip to content

Contributing

Luft lives at github.com/Lantharos/Luft. Report problems and suggest ideas in its issues, and send changes as pull requests.

Read How Luft fits together to find where a change belongs, Building Luft to build it, and Testing to try it.

  • Keep the style of the code around you. Each language has its formatter: cargo fmt and cargo clippy for Rust, and bun run check for the apps and Kestrel’s interface.
  • Test it the way the repository does. Kestrel changes go through kestrel/tools/session.sh capture, apps through their own checks, and anything touching disks, startup or installing goes through the VMs in os/vm, never through loop devices or mounts on your own machine.
  • Keep people’s data safe. Anything that erases asks first, and anything that can fail halfway can be finished or undone.
  • Write state where every version sees it. Services keep what they write in /var/lib, never /etc (Where state lives).
  • Write commits as sentences, in the imperative, saying what the change does: Show newly installed apps within a quarter second. Sign them.
  • Update these docs in the same change when it changes behaviour they describe. READMEs stay short and point here.

Every version has a changelog with only its own changes, grouped into Desktop, one group per app, System, and Installing (Install Luft, Meet Luft and the stick). A commit lands in a group by the files it changes. Commits that only touch CI, tests, checks, docs or development tools are left out. A nightly’s changelog covers the commits since the nightly before it, and a stable release’s merges every nightly since the previous release. There is no changelog file in the repository: the image carries its own, and Settings shows it under What’s new.

Put #[introspect] from luft-dbus-macros right above every zbus #[interface] and #[proxy]. cargo test then checks that packages/dbus/introspection holds what the interface exports or the proxy calls; after changing one, run LUFT_DBUS_UPDATE=1 cargo test -p CRATE introspection and commit the result. Name errors the way D-Bus interfaces describes.

Every patch in kestrel/compositor carries an Upstream-Status trailer saying whether it’s upstream, forwardable or Luft’s own (The compositor).

A new app goes in apps/store and a new extension in extensions, each with a schelf.toml that has listing = "store/", licence = "GPL-3.0-or-later" and repository = "Lantharos/Luft". store/listing.toml holds its name, summary, description, search keywords, categories (the first is its primary one), homepage, support, brand_color and listed = true, with its icon and the screenshots (at least 640 pixels on each side) in store/, in the order the store shows them. Each nightly publishes it to schelf.store, and the store page becomes exactly what these files say. Apps that update from the store say provider = "schelf" under [updates] in Sabine.toml, and its [sandbox] table says what they need.

Luft’s app icons live in apps/icons, two drawings per app, both 64 by 64. The one in originals is the full-colour icon, drawn without a plate in a few flat layers with soft gradients. The one in glyphs is the same picture in two tones, its main shape in an ink group and the rest in a shade group, with round-capped, round-joined strokes; Kestrel draws tinted, clear and monochrome icons from it. palette.json lists every icon with its brand colour. bun run build there writes the app’s public/favicon.svg, the store’s icon.svg and brand_color, and the glyph. An icon named after a second launcher, like schelf.parcel, is written to that app’s data folder for its image to install.

The version in Sabine.toml or extension.toml is the lowest the next release can have. Each release takes that or the next patch after the newest release, so nobody bumps a version for a fix; raise it in the manifest to start a new minor or major version.

Version 1 grows in place: add to it, never take away or change what’s there. When a change can’t keep old extensions working, copy kestrel/ui/src/extensions/api/v1 to v2, change the copy, add it to API_VERSIONS in api/versions.ts and its types beside v1.d.ts in packages/extension-api, and keep v1 working, so extensions keep targeting the version they were written for.

Luft is licensed under the GNU General Public License, version 3 or later. Kestrel’s engine and the Mutter patches stay GPL-2.0-or-later, as in GNOME Shell and Mutter. Open Runde and Maple Mono are under the SIL Open Font License. Contributions are accepted under the same licences.

These pages are Luft’s documentation, written in Markdown in web/docs. User pages say what something does and how to use it; pages for developers say how it works and why. Every page has an edit link at the bottom.

Terminal window
cd web/docs
bun run dev # http://localhost:4321
bun run check # types, frontmatter and asks
bun run build # checks every link

Each section answers one thing, and says it in its first two sentences: the steps or the fact, then the detail. Headings name the task or the problem, such as Adding a printer or When there’s no sound, not the feature.

The pages under Getting started, the desktop, windows, Make it yours, Apps, Files and accounts, and System list under asks what people type when they look for what the page answers. Search finds a page by these words, and a phrase with to leads to that section:

asks:
- task manager
- { ask: force quit, to: stopping-apps-and-processes }
- { ask: install an app, shared: true }

Write them the way someone would type them into a search box: lowercase, short, no question marks, with the words people bring from Windows and macOS, such as file explorer, snipping tool or spotlight. Leave out what the title already says, and only list what the page answers. Each phrase belongs to one page; when two pages answer it equally, mark it shared: true on both. bun run check fails when a user page has no asks, when to names a heading that isn’t there, or when two pages claim the same phrase without sharing it. Renaming a heading changes its anchor, so update the to that points at it and every link to it.