Repository navigation
Install wf-recorder on Macs so screen recording works - #626
Merged
Merged
Conversation
Screen recording picks wf-recorder on Apple Silicon, where gpu-screen-recorder finds no display device to capture (Asahi's display controller and GPU are separate DRM devices), but no package list named it. The converged image shipped without it and every recording failed with "wf-recorder: command not found". The Apple package list now carries it, and a migration installs it where the platform's defaults name it and it is missing. x86_64's defaults are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screen recording on Apple Silicon uses wf-recorder, because gpu-screen-recorder can't capture there: on an Asahi M1 it lists only portal capture and
-w eDP-1exits with "no /dev/dri/cardX device found" (the display controller and the GPU are separate DRM devices). No package list named wf-recorder, so the converged image shipped without it and every recording failed withwf-recorder: command not found(reproduced on the M2).install/omarchy-apple.packagesnow carrieswf-recorder(aarch64 [extra] 0.6.0-2), so images,omarchy-reinstall-pkgsand the migration engine's default-package step install it. x86_64 defaults are unchanged.-R 48000, finalize-ar 48000) are unchanged.Tests
test/shell.d/screenrecording-backend-test.sh: each platform's defaults carry the recorder it uses, migration cases (including lookup and install failure), and the real script with stubbed recorders: Apple runs wf-recorder on the focused monitor at 48 kHz, x86_64 runs gpu-screen-recorder.command not found. After the migration: 5 s fullscreen recordings with desktop audio, and with desktop plus microphone, are h264 3456x2234 plus AAC 48000 Hz stereo, 5.1-5.2 s, ~60 fps, decode cleanly and play in mpv; the combined-audio null sink is unloaded after stop.Second review: no blocking findings. Noted:
omarchy-upgrade-to-quattroretires wf-recorder before its migrations run, so a Mac taking that path would remove and then reinstall it. Macs don't upgrade through that script, so it's left alone here.