-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Summary of the new feature / enhancement
Some native commands may want to participate by providing a Feedback provider, but not want to craft a whole module just for it. Tools today modify the user's $profile during app install and can be tricky to remove correctly during uninstall.
Proposed technical implementation details (optional)
Extend powershell.config.json to have a section for Feedback providers. Essentially containing this section:
(actual implementation will be in JSON, using YAML for readability)
FeedbackProviders:
- Name: WinGet CommandNotFound
Path: $env:programfiles\foo\bar.dll
Enabled: trueThe system config.json would be the default and users can override with their own config.json (setting Enabled: false).
Feedback providers loaded on startup via this method would need to have some message shown to inform the user.
One problem is that new installs of PS7 have a default system config.json which would clobber the old one. Perhaps instead we should have the system one under ProgramData (on Windows) which would be the one apps can modify for install/uninstall.