From b9dc8727e326cc3c04c7842bc457a7b397b6795c Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 26 Oct 2008 16:18:54 -0300 Subject: Use gnome-about to obtain the GNOME version (closes http://developer.berlios.de/bugs/?func=detailbug&bug_id=14463&group_id=5897) --- hardinfo2/arch/linux/common/os.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'hardinfo2/arch') 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 { -- cgit v1.2.3