Get embedded state of the GtkStatusIcon object. If a GtkStatusIcon is embedded, then no system tray is accessible on the host machine.
$tray = new GtkStatusIcon(); if ($tray->is_embedded()) { echo 'No system tray available!'; }