* otherwise fails on hosts without desktop-file-utils installed, because cannot find binaries from desktop-file-utils-native
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Run all desktop files through desktop-file-validate.
"""
sane = True
+ env_path = bb.data.getVar('PATH', d, True)
+
if path.endswith(".desktop"):
- output = os.popen("desktop-file-validate %s" % path)
+ output = os.popen("PATH=%s desktop-file-validate %s" % (env_path, path))
# This only produces output on errors
for l in output:
sane = package_qa_handle_error(7, l.strip(), name, path, d)