how to check if x11 is enabled in linux code example Example: linux check if x11 echo $XDG_SESSION_TYPE