aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-07-06 15:22:26 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-07-10 12:24:36 -0700
commit754a87070910c336c7f62074aeac587374f85403 (patch)
tree513b0b5c0dc3778c9f4ea66abcc32bf8dffb8aa3 /modules/computer.c
parent70dfa900d53588dfda6fd1e12a47d9313e89c413 (diff)
computer/os: Ubuntu flavors
See: https://github.com/lpereira/hardinfo/issues/404 Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/computer.c')
-rw-r--r--modules/computer.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/computer.c b/modules/computer.c
index 8e867275..95614ca7 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -556,6 +556,7 @@ gchar *callback_os(void)
computer->os->distrocode))
: NULL;
+ struct InfoGroup *version_group =
info_add_group(
info, _("Version"), info_field(_("Kernel"), computer->os->kernel),
info_field(_("Command Line"), computer->os->kcmdline ?: _("Unknown")),
@@ -565,13 +566,19 @@ gchar *callback_os(void)
.icon = distro_icon),
info_field_last());
+ if (computer->os->ubuntu_flavor) {
+ info_group_add_field(version_group,
+ info_field(_("Spin/Flavor"), computer->os->ubuntu_flavor->name,
+ .icon = computer->os->ubuntu_flavor->icon) );
+ }
+
info_add_group(info, _("Current Session"),
- info_field(_("Computer Name"), computer->os->hostname),
- info_field(_("User Name"), computer->os->username),
- info_field(_("Language"), computer->os->language),
- info_field(_("Home Directory"), computer->os->homedir),
- info_field(_("Desktop Environment"), computer->os->desktop),
- info_field_last());
+ info_field(_("Computer Name"), computer->os->hostname),
+ info_field(_("User Name"), computer->os->username),
+ info_field(_("Language"), computer->os->language),
+ info_field(_("Home Directory"), computer->os->homedir),
+ info_field(_("Desktop Environment"), computer->os->desktop),
+ info_field_last());
info_add_group(info, _("Misc"), info_field_update(_("Uptime"), 1000),
info_field_update(_("Load Average"), 10000),