Repository navigation
profiles: add a config-profile IPC target - #4370
Conversation
Lets keybinds and scripts list, apply, cycle, save, create, rename and delete config profiles. A profile is picked by id or by its exact name; a name shared by several profiles is refused. The Control Center tile's next-profile logic moves into the service as cycle(), shared with the IPC next and prev. createProfile can skip the Settings draft, so a profile created over IPC while a new one is being edited does not take the draft's id and preview image.
Claude reviewOne issue to fix before merge: helper functions inside the
Checked: the new |
IpcHandler registers every function declared in it, so the untyped helpers logged a parse error on each load and _ready showed up as a public call. They now live on the service.
Claude reviewNo issues found. The earlier finding is fixed: the IPC helpers now live on the singleton ( Checked: every |
Description
Adds a
config-profileIPC target, so config profiles can be used from keybinds and scripts. It can list, apply, save, create, rename and remove profiles, and switch through them with next and prev. A profile can be passed by its id or by its name, as long as the name is unique.I missed this in my initial implementation but I think this is a good addition for future integrations.
The target is called
config-profilebecauseprofileis already taken by the profile picture.Also the Control Center tile now uses the same next profile logic as the IPC instead of its own copy.
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