[next] telepathy-glib: run-test.sh: cope with XDG_DATA_DIRS being empty

Simon McVittie smcv at kemper.freedesktop.org
Tue Mar 25 03:45:56 PDT 2014


Module: telepathy-glib
Branch: next
Commit: d74f4cdcdcc93d8b62843266ca6cb5d4571a1ff1
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=d74f4cdcdcc93d8b62843266ca6cb5d4571a1ff1

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu Mar 20 12:01:38 2014 +0000

run-test.sh: cope with XDG_DATA_DIRS being empty

---

 tests/dbus/run-test.sh.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/dbus/run-test.sh.in b/tests/dbus/run-test.sh.in
index 0628262..d343948 100644
--- a/tests/dbus/run-test.sh.in
+++ b/tests/dbus/run-test.sh.in
@@ -6,7 +6,7 @@ if [ `readlink -e "$0"` != "$script_fullname" ] ; then
   exit 1
 fi
 
-XDG_DATA_DIRS=@tpglibtestsdir@:$XDG_DATA_DIRS
+XDG_DATA_DIRS=@tpglibtestsdir@:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
 export XDG_DATA_DIRS
 G_SLICE=debug-blocks
 export G_SLICE



More information about the telepathy-commits mailing list