check desktop environment kali code example Example: which desktop environment is runnings $ echo $DESKTOP_SESSION