'Return the name of the Linux distribution, as a string.
For details, see :func:`distro.name`.'

def name(self, pretty=False):

    name = (self.os_release_attr('name') or self.lsb_release_attr('distributor_id') or self.distro_release_attr('name'))
    if pretty:
        name = (self.os_release_attr('pretty_name') or self.lsb_release_attr('description'))
        if (not name):
            name = self.distro_release_attr('name')
            version = self.version(pretty=True)
            if version:
                name = ((name + '    ') + version)
    return (name or '')
