Commit cfa4a1c0 authored by Ken VanDine's avatar Ken VanDine Committed by Ted Gould

snap: Ensure SNAP_DESKTOP_RUNTIME is set in the hook

parent 1f3f8bd4
......@@ -2,6 +2,8 @@
# Small hook to build a system font cache in the Snap's system directory
# SPDX-License-Identifier: GPL-2.0-or-later
export SNAP_DESKTOP_RUNTIME=${SNAP}/gnome-platform
mkdir -p $SNAP_DATA/fontconfig
echo "<fontconfig>" > ${SNAP_DATA}/fontconfig/fonts.conf
......@@ -14,4 +16,4 @@ echo "</fontconfig>" >> ${SNAP_DATA}/fontconfig/fonts.conf
export FONTCONFIG_FILE=${SNAP_DATA}/fontconfig/fonts.conf
exec ${SNAP}/snap/command-chain/snapcraft-runner ${SNAP}/usr/bin/fc-cache --force --system-only --verbose
exec ${SNAP}/snap/command-chain/snapcraft-runner ${SNAP_DESKTOP_RUNTIME}/usr/bin/fc-cache --force --system-only --verbose
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment