def METHOD_NAME():
    """Return whether running in sudo mode"""
    if not sys.platform.startswith('linux'):
        return False
    # if 'root' == os.getenv('USER'):
        # gksu in Ubuntu 9.10 changes the username.  If the username is root,
        # we're practically not in sudo mode.
        # Fedora 13: os.getenv('USER') = 'root' under sudo
        # return False
    return os.getenv('SUDO_UID') is not None