--- MenuXDGCheck.py +++ MenuXDGCheck.py @@ -21,8 +21,12 @@ def check_file(self, pkg, filename): f = pkg.dirName() + filename - if getstatusoutput(('desktop-file-validate', f), True)[0]: - printError(pkg, 'invalid-desktopfile', filename) + st = getstatusoutput(('desktop-file-validate', f), True) + if st[0]: + if st[1].find('error:') != -1: + printError(pkg, 'invalid-desktopfile', filename, st[1].split('error: ')[1]) + else: + printError(pkg, 'invalid-desktopfile', filename) if not is_utf8(f): printError(pkg, 'non-utf8-desktopfile', filename)