aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hardinfo2/arch/linux/common/os.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/hardinfo2/arch/linux/common/os.h b/hardinfo2/arch/linux/common/os.h
index a31cd81e..0c3a2586 100644
--- a/hardinfo2/arch/linux/common/os.h
+++ b/hardinfo2/arch/linux/common/os.h
@@ -73,11 +73,9 @@ detect_desktop_environment(OperatingSystem * os)
may not be the one that's running.
see where the user's running panel is and run *that* to
obtain the version. */
- version = popen("gnome-panel --version", "r");
+ version = popen("gnome-about --gnome-version", "r");
if (version) {
- char gnome[10];
-
- fscanf(version, "%s gnome-panel %s", gnome, vers);
+ fscanf(version, "Version: %s", vers);
if (pclose(version))
goto unknown;
} else {