aboutsummaryrefslogtreecommitdiff
path: root/modules/computer/os.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-07-15 18:46:59 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-08-10 16:50:18 -0700
commit3c83737fa488281f20030b5b36d7e1d4ba4313c9 (patch)
tree058ab8e18ff6bacdcf4a2551bf8845b447bab88a /modules/computer/os.c
parent0133e9fba615d8b5b1c67976a1da702977dd74a3 (diff)
Always pulse status bar while spawning processes synchronously
Diffstat (limited to 'modules/computer/os.c')
-rw-r--r--modules/computer/os.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/computer/os.c b/modules/computer/os.c
index ab557fa6..32e4e8cd 100644
--- a/modules/computer/os.c
+++ b/modules/computer/os.c
@@ -47,7 +47,7 @@ get_libc_version(void)
gboolean spawned;
gchar *out, *err, *p;
- spawned = g_spawn_command_line_sync(libs[i].test_cmd,
+ spawned = hardinfo_spawn_command_line_sync(libs[i].test_cmd,
&out, &err, NULL, NULL);
if (!spawned)
continue;
@@ -92,7 +92,7 @@ static gchar *detect_kde_version(void)
cmd = "kcontrol --version";
}
- spawned = g_spawn_command_line_sync(cmd, &out, NULL, NULL, NULL);
+ spawned = hardinfo_spawn_command_line_sync(cmd, &out, NULL, NULL, NULL);
if (!spawned)
return NULL;
@@ -107,7 +107,7 @@ detect_gnome_version(void)
gchar *out;
gboolean spawned;
- spawned = g_spawn_command_line_sync(
+ spawned = hardinfo_spawn_command_line_sync(
"gnome-shell --version", &out, NULL, NULL, NULL);
if (spawned) {
tmp = strstr(idle_free(out), _("GNOME Shell "));
@@ -118,7 +118,7 @@ detect_gnome_version(void)
}
}
- spawned = g_spawn_command_line_sync(
+ spawned = hardinfo_spawn_command_line_sync(
"gnome-about --gnome-version", &out, NULL, NULL, NULL);
if (spawned) {
tmp = strstr(idle_free(out), _("Version: "));
@@ -140,7 +140,7 @@ detect_mate_version(void)
gchar *out;
gboolean spawned;
- spawned = g_spawn_command_line_sync(
+ spawned = hardinfo_spawn_command_line_sync(
"mate-about --version", &out, NULL, NULL, NULL);
if (spawned) {
tmp = strstr(idle_free(out), _("MATE Desktop Environment "));
@@ -268,7 +268,7 @@ computer_get_dmesg_status(void)
{
gchar *out = NULL, *err = NULL;
int ex = 1, result = 0;
- g_spawn_command_line_sync("dmesg", &out, &err, &ex, NULL);
+ hardinfo_spawn_command_line_sync("dmesg", &out, &err, &ex, NULL);
g_free(out);
g_free(err);
result += (getuid() == 0) ? 2 : 0;
@@ -388,7 +388,7 @@ parse_lsb_release(void)
gchar *id = NULL;
gchar **split, *contents, **line;
- if (!g_spawn_command_line_sync("/usr/bin/lsb_release -di", &contents, NULL, NULL, NULL))
+ if (!hardinfo_spawn_command_line_sync("/usr/bin/lsb_release -di", &contents, NULL, NULL, NULL))
return (Distro) {};
split = g_strsplit(idle_free(contents), "\n", 0);
@@ -548,7 +548,7 @@ const gchar *
computer_get_selinux(void)
{
int r;
- gboolean spawned = g_spawn_command_line_sync("selinuxenabled",
+ gboolean spawned = hardinfo_spawn_command_line_sync("selinuxenabled",
NULL, NULL, &r, NULL);
if (!spawned)