[gnome-control-center] info panel: return "Unknown" on OS lacking os-release
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info panel: return "Unknown" on OS lacking os-release
- Date: Wed, 15 May 2019 22:16:26 +0000 (UTC)
commit 331f0d119b99baf3f2d1b7ddcf97bf8b435c9ec8
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Thu May 9 23:10:17 2019 +0200
info panel: return "Unknown" on OS lacking os-release
Return "Unknown" instead of the empty string if os_info fails.
panels/info/cc-info-overview-panel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/info/cc-info-overview-panel.c b/panels/info/cc-info-overview-panel.c
index 4541986db..0d0a17fcf 100644
--- a/panels/info/cc-info-overview-panel.c
+++ b/panels/info/cc-info-overview-panel.c
@@ -437,7 +437,7 @@ get_os_name (void)
os_info = get_os_info ();
if (!os_info)
- return NULL;
+ g_strdup (_("Unknown"));
name = g_hash_table_lookup (os_info, "NAME");
version_id = g_hash_table_lookup (os_info, "VERSION_ID");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]