Repository navigation
Description
Profile changes only happen through the ControlApp UI. Switching a profile for a game, from a script, or from another tool means clicking through the app.
Profiles are a ControlApp concept. They live in the user-data store under %ProgramData%\DsHidMini\ControlApp, and a save writes the resolved settings into %ProgramData%\DsHidMini\DsHidMini.json. The driver does not keep the profile library. Existing driver IPC is a liveness channel: the IPCEnabled flag in that JSON, plus a ping that only works while the demand-loaded driver has a device attached. It is not a profile API. Hand-editing DsHidMini.json is not a substitute either; ControlApp treats that file as generated output and overwrites it from user data.
Request
Provide a supported way to list, switch, and edit profiles without the UI. A small CLI is the user-facing tool. The transport under it should be chosen for how well it stays consistent with ControlApp. Both of these are in scope:
- Direct driver IPC, for operations the driver already owns (live device state). Profile storage itself is not in the driver today.
- A simple Windows service that owns the user-data store and is the single writer of
DsHidMini.json, so ControlApp and the CLI cannot race.
Minimum operations:
- List profiles (name, GUID, which one is Global)
- Set the Global profile
- Assign a profile to a device by MAC, or set that device back to Global or Custom
- Read and update a profile's settings
- Create and delete a user profile, never the built-in default
Notes
- Writes should use the same save-and-regenerate path ControlApp uses, including rollback when the driver config write fails, and the same permission model for the shared configuration files.
- The CLI should work from a non-elevated shell when those shared files are already writable, matching ControlApp.
- A service, if that is the transport, should stay small: no UI, start on demand, and not require the WPF app to be running.
Activity