redirect check4root output to /dev/null; added check for $WINDOWMANAGER and use...