Merge branch 'fix-inspector-system-info' into 'mainline'

application-client: Check for null when getting os info

See merge request GNOME/geary!651
This commit is contained in:
Michael Gratton 2021-01-31 01:04:56 +00:00
commit 581754872a

View file

@ -304,12 +304,14 @@ public class Application.Client : Gtk.Application {
/// Application runtime information label
info.add({ _("Distribution name"),
GLib.Environment.get_os_info(GLib.OsInfoKey.NAME)
GLib.Environment.get_os_info(GLib.OsInfoKey.NAME) ??
_("Unknown")
});
/// Application runtime information label
info.add({_("Distribution release"),
GLib.Environment.get_os_info(GLib.OsInfoKey.VERSION)
GLib.Environment.get_os_info(GLib.OsInfoKey.VERSION) ??
_("Unknown")
});
/// Application runtime information label