ubuntu how to check display desktop environment code example Example: which desktop environment is runnings $ echo $DESKTOP_SESSION