trivial: don't comment out any daemon.conf keys by default

It's confusing to an end user if some keys are commented but others
aren't. The thought process is:

1) All keys are configured with their default value.
2) Commenting out a key should keep the default value.
3) Modifying a key sets a new value.
This commit is contained in:
Mario Limonciello 2022-12-19 10:46:36 -06:00 committed by Mario Limonciello
parent b1ee46bc2a
commit d09fb40ae2
2 changed files with 10 additions and 5 deletions

View File

@ -60,11 +60,16 @@ TrustedUids=
# config level. e.g. `vendor-factory-2021q1`
HostBkc=
# The EFI system partition (ESP) path used if UDisks is not available
# or if this partition is not mounted at /boot/efi, /boot, or /efi
#EspLocation=
# Override the location used for the EFI system partition (ESP) path.
# This is typically used if UDisks is not available, or was not able to
# automatically identify the location for any reason.
EspLocation=
# these are only required when the SMBIOS or Device Tree data is invalid or missing
# Override values for SMBIOS / Device Tree data on a system.
# These are only required when the SMBIOS or Device Tree data is invalid,
# missing, or to simulate running on another system.
# * Uncomment them to populate blank entries
# * Uncomment them and add values to populate specific entries
#Manufacturer=
#ProductName=
#ProductSku=

View File

@ -192,7 +192,7 @@ fu_config_reload(FuConfig *self, GError **error)
}
/* get idle timeout */
idle_timeout = g_key_file_get_int64(keyfile, "fwupd", "IdleTimeout", &error_timeout);
idle_timeout = g_key_file_get_uint64(keyfile, "fwupd", "IdleTimeout", &error_timeout);
if (idle_timeout > 0)
self->idle_timeout = idle_timeout;
else if (error_timeout != NULL)