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:
commit
581754872a
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