aboutsummaryrefslogtreecommitdiff
path: root/modules/computer
diff options
context:
space:
mode:
Diffstat (limited to 'modules/computer')
-rw-r--r--modules/computer/boots.c2
-rw-r--r--modules/computer/languages.c2
-rw-r--r--modules/computer/os.c16
-rw-r--r--modules/computer/ubuntu_flavors.c2
4 files changed, 11 insertions, 11 deletions
diff --git a/modules/computer/boots.c b/modules/computer/boots.c
index ba458242..63122994 100644
--- a/modules/computer/boots.c
+++ b/modules/computer/boots.c
@@ -35,7 +35,7 @@ scan_boots_real(void)
else
return;
- spawned = g_spawn_command_line_sync("last",
+ spawned = hardinfo_spawn_command_line_sync("last",
&out, &err, NULL, NULL);
if (spawned && out != NULL) {
p = out;
diff --git a/modules/computer/languages.c b/modules/computer/languages.c
index 954f5b20..105b9e58 100644
--- a/modules/computer/languages.c
+++ b/modules/computer/languages.c
@@ -124,7 +124,7 @@ scan_languages(OperatingSystem * os)
locale_info *curr = NULL;
int last = 0;
- spawned = g_spawn_command_line_sync("locale -va",
+ spawned = hardinfo_spawn_command_line_sync("locale -va",
&out, &err, NULL, NULL);
if (spawned) {
ret = g_strdup("");
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)
diff --git a/modules/computer/ubuntu_flavors.c b/modules/computer/ubuntu_flavors.c
index 20e83c82..f50afb0e 100644
--- a/modules/computer/ubuntu_flavors.c
+++ b/modules/computer/ubuntu_flavors.c
@@ -62,7 +62,7 @@ GSList *ubuntu_flavors_scan(void) {
if (!i)
return NULL;
- spawned = g_spawn_command_line_sync(cmd_line,
+ spawned = hardinfo_spawn_command_line_sync(cmd_line,
&out, &err, &exit_status, NULL);
if (spawned) {
p = out;