diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-10-26 16:18:54 -0300 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-10-26 16:18:54 -0300 | 
| commit | b9dc8727e326cc3c04c7842bc457a7b397b6795c (patch) | |
| tree | cdbeedb0e6f478fa8b8a9c6cc5644e36fccb669d /hardinfo2/arch/linux/common | |
| parent | dfe6f7495d746b65fbaf8134d3fd6a640a56277d (diff) | |
Use gnome-about to obtain the GNOME version (closes http://developer.berlios.de/bugs/?func=detailbug&bug_id=14463&group_id=5897)
Diffstat (limited to 'hardinfo2/arch/linux/common')
| -rw-r--r-- | hardinfo2/arch/linux/common/os.h | 6 | 
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 { | 
