summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_software.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-26 18:05:03 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-26 18:05:03 -0500
commit5bf8fb0ec61ff8a2c626e5c44dcf4356655a97fd (patch)
tree02174ac7c7690d1e1e14640ffe8a0973bc7a4cfc /pts-core/functions/pts-functions_system_software.php
parent0c978c06fdc9fa972126f5700c9ee9df1c272636 (diff)
downloadphoronix-test-suite-upstream-5bf8fb0ec61ff8a2c626e5c44dcf4356655a97fd.tar.gz
phoronix-test-suite-upstream-5bf8fb0ec61ff8a2c626e5c44dcf4356655a97fd.tar.xz
phoronix-test-suite-upstream-5bf8fb0ec61ff8a2c626e5c44dcf4356655a97fd.zip
pts-core: Add support for detecting and reporting the desktop
environment / version in use
Diffstat (limited to 'pts-core/functions/pts-functions_system_software.php')
-rw-r--r--pts-core/functions/pts-functions_system_software.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_system_software.php b/pts-core/functions/pts-functions_system_software.php
index e034991..362d9ef 100644
--- a/pts-core/functions/pts-functions_system_software.php
+++ b/pts-core/functions/pts-functions_system_software.php
@@ -228,6 +228,19 @@ function sw_os_release()
return $os;
}
+function sw_desktop_environment()
+{
+ $desktop = false;
+
+ if(pts_process_running_bool("gnome-panel"))
+ {
+ $gnome_version = array_pop(explode(" ", trim(shell_exec("gnome-about --version"))));
+
+ $desktop = "GNOME " . $gnome_version;
+ }
+
+ return $desktop;
+}
function sw_os_opengl()
{
// OpenGL version