shared: Update all users of DATADIR
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 6 Feb 2018 21:18:38 +0000 (15:18 -0600)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 7 Feb 2018 09:39:36 +0000 (11:39 +0200)
commite277276b850bad39ed6995be5a82f24aa6b17bf1
treed6e6b382f23ddb924eb745c75e44d4170b766ceb
parentb7e3db6a76ca74c878a79717300d0a1f9b3be06e
shared: Update all users of DATADIR

Replace every use of DATADIR to create a filename with a call to the new
function that allows overriding DATADIR with an env var at runtime.

No attention is paid to asprintf failure.

This restores make distcheck to a passing state after commit 6b58ea
began checking cairo surfaces for validity and exchanged undefined
behaviour we shouldn't have been dependent on for consistent test failure.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
[Pekka: split if-branches into two lines]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
clients/desktop-shell.c
clients/ivi-shell-user-interface.c
libweston/compositor-x11.c
shared/frame.c