Hi,

Is there an easy way to detect the desktop environment?

I want to launch the default calculator and the default on screen keyboard but I do not know how to check if KDE, Gnome or something else is being used.