You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
If we create a partial configuration file where only some configuration options are defined, gpg-tui errors out on launch with a message similar to this:
Error: TOML parse error at line 1, column 1
|
1 | [general]
| ^^^^^^^^^
missing field `splash`
Gpg-tui currently doesn't accept a configuration file unless all configuration keys are defined.
Describe the solution you'd like
Here are some of the problems that arise from requiring the user to define all configuration keys:
A user might wish to retain the default configuration for most of configuration keys, and override just a few of them. It's a hassle to find out the appropriate values for every key.
The values identified by the user for a key may be wrong - even though they may not want to override it. This happened to me. I took default values from the man pages. However, gpg-tui was blank when it was launched. I'm still unable to figure out which key caused that.
If an update of gpg-tui adds a configuration key, the user will be forced to add it to the config file manually. The application won't launch without it.
The appropriate solution would be to assume default values for all keys and then allow the user to selectively override them in the config file.
Describe alternatives you've considered
One possibility is to define all the default values in a system-wide config file (somewhere in /etc or /usr/share). Read this file first. Then read the user config file (from ~/.config) and overwrite values for those variables that are defined in it.
Additional context
None
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
If we create a partial configuration file where only some configuration options are defined, gpg-tui errors out on launch with a message similar to this:
Gpg-tui currently doesn't accept a configuration file unless all configuration keys are defined.
Describe the solution you'd like
Here are some of the problems that arise from requiring the user to define all configuration keys:
The appropriate solution would be to assume default values for all keys and then allow the user to selectively override them in the config file.
Describe alternatives you've considered
One possibility is to define all the default values in a system-wide config file (somewhere in /etc or /usr/share). Read this file first. Then read the user config file (from ~/.config) and overwrite values for those variables that are defined in it.
Additional context
None
The text was updated successfully, but these errors were encountered: