From 2b38efca8ca9f7a916ad15d45836aae5e4a6a95e Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 14 Jul 2019 14:01:34 -0700 Subject: Pulse status bar while filling out PCI information Maybe this could use the async version too, so multiple lspci can be spawned concurrently? --- hardinfo/pci_util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardinfo/pci_util.c b/hardinfo/pci_util.c index aeb2e839..ec80662b 100644 --- a/hardinfo/pci_util.c +++ b/hardinfo/pci_util.c @@ -99,6 +99,8 @@ static gboolean pci_fill_details(pcid *s) { gchar *pci_loc = pci_address_str(s->domain, s->bus, s->device, s->function); gchar *lspci_cmd = g_strdup_printf("lspci -D -s %s -vvv", pci_loc); + shell_status_pulse(); + spawned = g_spawn_command_line_sync(lspci_cmd, &out, &err, NULL, NULL); g_free(lspci_cmd); @@ -211,6 +213,8 @@ static gboolean pci_get_device_lspci(uint32_t dom, uint32_t bus, uint32_t dev, u s->device = dev; s->function = func; + shell_status_pulse(); + spawned = g_spawn_command_line_sync(lspci_cmd, &out, &err, NULL, NULL); g_free(lspci_cmd); -- cgit v1.2.3