Repository navigation
feat(dev): add --demo mode for recording - #27
Merged
Merged
Conversation
`Menew --demo` runs the full app (menu bar, popover, palette, notch, Menew window) with the same fake data as --snapshot, so promo videos never show the maintainer's real clipboard, notes or other data. - UserDefaults.standard is swapped for its own domain (com.matheusquost.menew.demo); real settings are neither read nor written - data files go to a temp folder deleted on quit (stale ones are cleaned on the next demo launch) - clipboard polling, Automatic Memory, Spotlight, widgets, automations, text expander, calendar, agent hooks/MCP config writes, Siri phrases, migration and the update check stay off - forces English (and matching -AppleLanguages) unless -language is passed - refuses to start while the real Menew is running - --snapshot reuses the shared fake display/network/machine data Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
Menew --demoruns the full, live app (menu bar, popover, command palette, notch, Menew window) with the same fake data as--snapshot, so promo videos never show the maintainer's real clipboard, notes or other data. Documented inCONTRIBUTING.mdunder "Recording a demo".How
UserDefaults.standard(and@AppStorage) is swapped for its own domain,com.matheusquost.menew.demo: real settings are neither read nor written, even on a crash.$TMPDIR/Menew-demo-<pid>) deleted on quit; leftovers from a crash are cleaned on the next demo launch. Paths go through a newAppData.dir.demo()/showDemo()data (clipboard, notes, memory, recordings, meetings, agents and usage, profiles, shelf, clocks, automations, screen time, history, battery, Bluetooth, network, processes, displays, uninstaller, startup items).-AppleLanguages, so app names and durations aren't in the system language);-language pt|de|es|zhstill works.--snapshotnow reuses the shared fake display/network/machine setup; output unchanged (136 images).Verification
./build.shpasses.~/Library/Application Support/Menewkept their modification times, the real prefs plist was untouched, and the temp folder was removed.Developer flag only: no new UI strings, screenshots or website changes.
🤖 Generated with Claude Code