summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2015-11-03 15:25:37 +0100
committerThibault Saunier <tsaunier@gnome.org>2015-11-03 15:29:05 +0100
commitb8426ad641349a62622ebadf2063e07ca9a10829 (patch)
tree8ad84a6c071fa7225bb0179f7e557689031b1c5e
parentc72854c50f6d31e18da2ac2f068c62fad429858c (diff)
linux-bundle: use user's system fonts if possible
Otherwise we have to re create the cache each time, and that takes time.
-rw-r--r--cerbero/packages/linux_bundle.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cerbero/packages/linux_bundle.py b/cerbero/packages/linux_bundle.py
index cb8044b2..7623d5c2 100644
--- a/cerbero/packages/linux_bundle.py
+++ b/cerbero/packages/linux_bundle.py
@@ -43,6 +43,11 @@ if [ $? -eq 0 ]; then
gdk-pixbuf-query-loaders $APPDIR/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so > $GDK_PIXBUF_MODULE_FILE 2>&1
fi
+if [[ -e /etc/fonts/fonts.conf && -z "$FONTCONFIG_FILE" ]]
+then
+ export FONTCONFIG_FILE=/etc/fonts/fonts.conf
+fi
+
if test -z ${APP_IMAGE_TEST}; then
# Invoke the app with the arguments passed
cd ${APPDIR}