application-client: Check for null when getting os info
This caused a crash in the inspector system view when the os info wasn't available. Related to https://gitlab.gnome.org/GNOME/geary/-/issues/1123
This commit is contained in:
parent
e99115e99f
commit
c524e17798
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue