Desktop.Type (gb.qt4)

Static Property Read Type As String

Return the current desktop environment name.

Here a list of possible return values:
  • KDE4

  • KDE5


  • MATE



  • XFCE

  • ...

If the XDG_CURRENT_DESKTOP environment variable is defined, its value 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.