From 3c83737fa488281f20030b5b36d7e1d4ba4313c9 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 15 Jul 2019 18:46:59 -0700 Subject: Always pulse status bar while spawning processes synchronously --- hardinfo/pci_util.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'hardinfo/pci_util.c') diff --git a/hardinfo/pci_util.c b/hardinfo/pci_util.c index ec80662b..2aa2ece3 100644 --- a/hardinfo/pci_util.c +++ b/hardinfo/pci_util.c @@ -99,9 +99,7 @@ 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, + spawned = hardinfo_spawn_command_line_sync(lspci_cmd, &out, &err, NULL, NULL); g_free(lspci_cmd); g_free(pci_loc); @@ -213,9 +211,7 @@ 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, + spawned = hardinfo_spawn_command_line_sync(lspci_cmd, &out, &err, NULL, NULL); g_free(lspci_cmd); if (spawned) { @@ -274,7 +270,7 @@ static pcid *pci_get_device_list_lspci(uint32_t class_min, uint32_t class_max) { if (class_max == 0) class_max = 0xffff; - spawned = g_spawn_command_line_sync("lspci -D -mn", + spawned = hardinfo_spawn_command_line_sync("lspci -D -mn", &out, &err, NULL, NULL); if (spawned) { p = out; -- cgit v1.2.3