From 6c3f27c5b435bccaab111d8dd32dc28473251f10 Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 21 Jun 2019 10:54:20 -0500 Subject: Note for missing nvme info without udisks2 Signed-off-by: Burt P --- modules/devices.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/devices.c b/modules/devices.c index a07bdcaa..0056ea6e 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -115,6 +115,7 @@ gchar *printer_list = NULL; gchar *printer_icons = NULL; gchar *pci_list = NULL; gchar *input_list = NULL; +gboolean storage_no_nvme = FALSE; gchar *storage_list = NULL; gchar *battery_list = NULL; gchar *lginterval = NULL; @@ -585,8 +586,9 @@ void scan_storage(gboolean reload) SCAN_START(); g_free(storage_list); storage_list = g_strdup(""); - + storage_no_nvme = FALSE; if (!__scan_udisks2_devices()) { + storage_no_nvme = TRUE; __scan_ide_devices(); __scan_scsi_devices(); } @@ -781,6 +783,13 @@ const gchar *hi_note_func(gint entry) return g_strdup(_("Resource information requires superuser privileges")); } } + else if (entry == ENTRY_STORAGE){ + if (storage_no_nvme) { + return g_strdup( + _("Any NVMe storage devices present are not listed.\n" + "udisksd is required for NVMe devices.")); + } + } else if (entry == ENTRY_SPD){ const char *msg; if (spd_decode_show_hinote(&msg)) { -- cgit v1.2.3