summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 68b7a7d..1ba78bf 100644
--- a/pts-core/functions/pts-functions_system_software.php
+++ b/pts-core/functions/pts-functions_system_software.php
@@ -268,6 +268,19 @@ function sw_desktop_environment()
}
}
+ else if(pts_process_running_bool("xfce4-session"))
+ {
+ // Xfce 4.x
+ $desktop_environment = "Xfce";
+
+ $xfce_output = trim(shell_exec("xfce4-session --version 2>&1"));
+
+ if(($open = strpos($xfce_output, "(")) > 0)
+ {
+ $xfce_output = substr($xfce_output, strpos($xfce_output, " ", $open));
+ $desktop_version = substr($xfce_output, 0, strpos($xfce_output, ")"));
+ }
+ }
if(!empty($desktop_environment))
{