'Get the title of all boot entries.
:return: list with titles of boot entries'

def get_titles(self):

    titles = []
    for line in self.get_info_lines():
        try:
            (key, value) = line.split('=')
            if (key in ['title', 'label']):
                titles.append(value)
        except ValueError:
            pass
    return titles
