info-overview: Don't show "Firmware Version" row in virtual machines
This value comes from systemd-hostnamed, which harvests it from /sys/class/dmi/id/bios_version, which happens to be empty/invalid in virtual machines (at least KVM powered virtualization). For this reason, we are better off hiding the "Firmware Version" row when gnome-control-center is running in a VM. Fixes #2181
This commit is contained in:
parent
150fc13a84
commit
e39e21eac3
1 changed files with 2 additions and 0 deletions
|
@ -553,6 +553,8 @@ set_virtualization_label (CcInfoOverviewPanel *self,
|
|||
if (virt == NULL || *virt == '\0')
|
||||
{
|
||||
gtk_widget_hide (GTK_WIDGET (self->virtualization_row));
|
||||
gtk_widget_hide (GTK_WIDGET (self->firmware_version_row));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue