Repository navigation
feat(ipc): add settings dump to print full live config as JSON - #2817
Merged
Merged
Conversation
Adds `dms ipc call settings dump`, returning the complete live configuration via SettingsData.getCurrentSettingsJson() — the same serialization used by the read-only banner's copy button. Useful when settings.json is a read-only symlink (NixOS/home-manager): changes made in the Settings UI only exist in the running shell's memory, and this makes them retrievable from the CLI instead of only through the clipboard button in the Settings modal. Co-Authored-By: Claude Fable 5 <[email protected]>
sweenu
marked this pull request as ready for review
July 12, 2026 10:46
dank-shell-app Bot
pushed a commit
that referenced
this pull request
Jul 13, 2026
Adds `dms ipc call settings dump`, returning the complete live configuration via SettingsData.getCurrentSettingsJson() — the same serialization used by the read-only banner's copy button. Useful when settings.json is a read-only symlink (NixOS/home-manager): changes made in the Settings UI only exist in the running shell's memory, and this makes them retrievable from the CLI instead of only through the clipboard button in the Settings modal. Co-authored-by: Claude Fable 5 <[email protected]> Port 1.5 (cherry picked from commit 846d07d)
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.
Description
Adds a
dumpfunction to thesettingsIPC target:It returns the complete live configuration as pretty-printed JSON via the existing
SettingsData.getCurrentSettingsJson()— the same serialization the read-only banner's "settings.json" copy button uses.Motivation
When
settings.jsonis a read-only symlink (NixOS/home-manager setups), changes made through the Settings UI can't be persisted and only exist in the running shell's memory. Today the only way to retrieve that live state is the clipboard copy button in the Settings modal's read-only banner. This exposes the same full dump over IPC, so it's scriptable and works without opening the UI — e.g. to diff against or paste back into the nix-managed config.Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings