aboutsummaryrefslogtreecommitdiff
path: root/hardinfo/pci_util.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-07-14 14:01:34 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-07-14 14:01:34 -0700
commit2b38efca8ca9f7a916ad15d45836aae5e4a6a95e (patch)
tree3896c49d664fcd8eba2f2c37c0df94f438e06271 /hardinfo/pci_util.c
parentecb800e15479967fb15f76f9ff754bc1a53e50de (diff)
Pulse status bar while filling out PCI information
Maybe this could use the async version too, so multiple lspci can be spawned concurrently?
Diffstat (limited to 'hardinfo/pci_util.c')
-rw-r--r--hardinfo/pci_util.c4
1 files changed, 4 insertions, 0 deletions
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);