Development
Run inside a nested compositor (a second miracle-wm, Miriway or Sway on its own
WAYLAND_DISPLAY) — the shell takes over the panels, wallpaper and portal of whatever
session it runs in.
flutter run -d linuxflutter analyzeflutter test # or: flutter test test/widget_test.dartCapture and portals
Section titled “Capture and portals”The capture, screencast and input-capture stack needs a live compositor, so it is driven by a standalone binary:
dart compile exe tool/screencast_spike.dart -o /tmp/spikeWAYLAND_DISPLAY=wayland-99 /tmp/spike --capture # frames from each outputWAYLAND_DISPLAY=wayland-99 /tmp/spike --portal # ScreenCast backend, auto-acceptingWAYLAND_DISPLAY=wayland-99 /tmp/spike --input-capture # InputCapture backend, auto-acceptingpython3 tool/portal_client_test.pypython3 tool/input_capture_client_test.pyPulseAudio: dart run tool/pulse_spike.dart (MOONSWING_PULSE_LOG=1 to log).
Profiling
Section titled “Profiling”Impeller is off by default (set in linux/runner/my_application.cc). To measure with it on:
flutter build linux --profileMOONSWING_IMPELLER=1 ./build/linux/x64/profile/bundle/moonswingContributing
Section titled “Contributing”Code conventions and architecture are in
CLAUDE.md.