'Main function'

def run(self, software_name=None):

    locations = [(constant.profile['USERPROFILE'] + '\\.git-credentials'), (constant.profile['USERPROFILE'] + '\\.config\\git\\credentials')]
    if ('XDG_CONFIG_HOME' in os.environ):
        locations.append((os.environ.get('XDG_CONFIG_HOME') + '\\git\\credentials'))
    pwd_found = []
    for location in locations:
        pwd_found += self.extract_credentials(location)
    final_pwd_found = []
    duplicates_track = []
    for pwd in pwd_found:
        pwd_id = ((pwd['URL'] + pwd['Username']) + pwd['Password'])
        if (pwd_id not in duplicates_track):
            final_pwd_found.append(pwd)
            duplicates_track.append(pwd_id)
    return final_pwd_found
