[Libreoffice-commits] online.git: debian/loolwsd.postinst.in loolwsd.spec.in

Andras Timar andras.timar at collabora.com
Tue Apr 4 10:12:52 UTC 2017


 debian/loolwsd.postinst.in |    2 ++
 loolwsd.spec.in            |    1 +
 2 files changed, 3 insertions(+)

New commits:
commit 94a810daa0377ac76a50a992edcb44dd1be1956a
Author: Andras Timar <andras.timar at collabora.com>
Date:   Tue Apr 4 12:12:22 2017 +0200

    Run fc-cache after installation in order to improve startup time of LOKit
    
    Change-Id: Ide3ceb5b5dccfce6ea9e155b5dbf2e49bf24fe88

diff --git a/debian/loolwsd.postinst.in b/debian/loolwsd.postinst.in
index fe7eb49a..75ffb82e 100755
--- a/debian/loolwsd.postinst.in
+++ b/debian/loolwsd.postinst.in
@@ -20,6 +20,8 @@ case "$1" in
 	chown lool: /opt/lool
 	chown lool: /opt/lool/child-roots
 
+	fc-cache @LO_PATH@/share/fonts/truetype
+
 	su lool --shell=/bin/sh -c "loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1"
 	;;
 
diff --git a/loolwsd.spec.in b/loolwsd.spec.in
index ebb934f5..5b1463e6 100644
--- a/loolwsd.spec.in
+++ b/loolwsd.spec.in
@@ -140,6 +140,7 @@ mkdir -p ${loolparent}/lool/child-roots
 chown lool:lool ${loolparent}/lool
 chown lool:lool ${loolparent}/lool/child-roots
 
+fc-cache ${loroot}/share/fonts/truetype
 su lool -c "loolwsd-systemplate-setup ${loolparent}/lool/systemplate ${loroot} >/dev/null 2>&1"
 
 %if 0%{?fedora} || 0%{?rhel} >= 7


More information about the Libreoffice-commits mailing list