Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Control
Key
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Desktop.Type (gb.qt4)

Static Property Read Type As String

Return the current desktop environment name.

Here a list of possible return values:
  • KDE

  • GNOME

  • MATE

  • ENLIGHTENMENT

  • WINDOWMAKER

  • XFCE

  • ...

If the XDG_CURRENT_DESKTOP environment variable is defined, the first element of its contents is returned.

Otherwise several heuristics are used for detecting the current desktop: for example, checking the KDE_FULL_SESSION environment variable for KDE desktops, checking the GNOME_DESKTOP_SESSION_ID environmental variable for Gnome desktops, and so on.

See also

Desktop.Types