DRAGONFRUIT PROJECT Wayland compositor · Linux Codeberg repository ↗
dragonfruitWayland compositor

Build from source

Compiling Dragonfruit with Meson and Ninja

Build from source

Dragonfruit is written in C and builds with Meson and Ninja. The build produces the compositor (dragonfruit), the IPC client (dfmsg) and the config error bar (mangonag).

SECTION 01 · Getting started
Scope: Meson / C
Repository and source ↗

Cloning the repository

git clone https://codeberg.org/central-lambda-group/dragonfruit.git
cd dragonfruit

The default branch is dragonfruit. To build a release, check out its tag from Releases:

git checkout 0.2.1

Meson options

OptionDefaultDescription
-Dxwayland=enabled|auto|disabledenabledXWayland support. enabled requires xcb and xcb-icccm.
-Dasan=true|falsefalseAddressSanitizer, for development.
meson setup build --prefix=/usr
ninja -C build

Building wlroots and scenefx

If your distribution does not package them:

git clone -b 0.20.2 https://gitlab.freedesktop.org/wlroots/wlroots.git
meson setup wlroots/build wlroots --prefix=/usr && sudo ninja -C wlroots/build install

git clone -b 0.5 https://github.com/wlrfx/scenefx.git
meson setup scenefx/build scenefx --prefix=/usr && sudo ninja -C scenefx/build install

Installing

sudo ninja -C build install installs dragonfruit, dfmsg and mangonag, the session entry, the portal preferences, the stock config in /etc/dragonfruit and the background shaders.

sudo ninja -C build install

Running without installing

A bare shader name such as canvas_shader=grain resolves against the install directory, so point it at the source tree. Give -c an absolute path.

export DRAGONFRUIT_SHADER_DIR=$PWD/assets/shaders
./build/dragonfruit -c "$PWD/assets/config.conf"

← Previous

Installation

Next →

First launch