-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide ability to set configuration at the machine level, rather than just at user level #602
Comments
Following a discussion with @ferventcoder it makes sense that these global configuration options should be added to the main chocolatey.config file. This is already starting to house configuration for other parts of the Chocolatey ecosystem, like CCM and Chocolatey Agent, so it makes sense that this should also house configuration data for Chocolatey GUI. |
This introduces the concept of a data.db file in the C:/ProgramData/Chocolatey GUI folder, which will house the global configuration for the application. Calling chocolateyguicli feature or config with the --global flag will set the data.db in this new location. Without the --global flag, the setting will be made in the users data.db file, as normal. Then, the effective configuration, i.e. the current Global configuration and any overridden user settings, is evaluated, and used as the current configuration for the running application.
Only show the output for the config values, not the features as well. This is a divergence from what chocolatey does, but it also makes the output much easier to parse, based on the output of the command.
(GH-602) Initial attempt at getting things working
This has now been implemented, and is available in the latest package from the Chocolatey MyGet feed (see the readme for more information) and it will ship as part of the 0.18.0 release of Chocolatey GUI. Chocolatey GUI has always had a data.db file in the users appdata folder: which housed all the user specific configuration for Chocolatey GUI. With this change, there is now also another data.db file, located in the common appdata folder which will house all the global defaults for the Chocolatey GUI configuration. Opening Chocolatey GUI and using the Settings screen will always update/edit the configuration within the user specific data.db file: However, using the For example, running:
will list the current effective configuration for the currently logged in user: and running:
Will show the global configuration that is in place for all users: In these examples, you will see that the currently logged in user has modified their setting to enable the While signed into a computer as a non-administrator user (assuming it is allowed) a user can modify configuration through the However, any attempt to modify the global settings, will result in an error: While logged in as a non-administrator user, with the Chocolatey GUI Extension installed and the In addition, access to settings through the UI will not be possible: In terms of easily parsing the current features and config for Chocolatey GUI, you can use the following commands:
And:
NOTE: The decision to place the global configuration into the chocolatey.config file was not followed, since it made more sense to continue with the data.db approach, which is currently what is used for the user specific information. |
🎉 This issue has been resolved in version 0.18.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
At the minute, the Chocolatey GUI settings:
are configured on a person user basis. It should be possible to allow settings these options globally, with the ability for users to configure these to their own needs, if required. They will help with administrative deployments of Chocolatey GUI.
This should include the ability to roll back setting to the globally configured defaults.
Also, for an administrative user, when making a change, it should be possible to specify whether the change is to the global setting, or to the local user setting.
The text was updated successfully, but these errors were encountered: