Skip to content

Commit 32092d8

Browse files
author
Your Name
committed
fix font config
1 parent 8bad390 commit 32092d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

linuxdeploy-plugin-conda.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ done
159159
# specific files in usr/conda/bin/ (regex could result in false replacements in other files)
160160
[ -f usr/conda/bin/python3-config ] && sed -i --follow-symlinks "s|$APPDIR_FULL|\${APPDIR}|g" usr/conda/bin/python3-config
161161
[ -f usr/conda/bin/ncursesw6-config ] && sed -i --follow-symlinks "s|$APPDIR_FULL|\${APPDIR}|g" usr/conda/bin/ncursesw6-config
162+
[ -f usr/conda/etc/fonts/fonts.conf ] && sed -i --follow-symlinks "s|<cachedir>$APPDIR_FULL|<cachedir>/tmp|g" usr/conda/etc/fonts/fonts.conf
163+
[ -f usr/conda/etc/fonts/fonts.conf ] && sed -i --follow-symlinks "s|<dir>$APPDIR_FULL|<dir>|g" usr/conda/etc/fonts/fonts.conf
164+
162165
popd
163166

164167
# generate linuxdeploy-plugin-conda-hook
@@ -170,6 +173,9 @@ cat > "$APPDIR"/apprun-hooks/linuxdeploy-plugin-conda-hook.sh <<\EOF
170173
export APPDIR="${APPDIR:-$(readlink -f "$(dirname "$0")")}"
171174
# export PATH to allow /usr/bin/env shebangs to use the supplied applications
172175
export PATH="$APPDIR"/usr/bin:"$PATH"
176+
# set font config path
177+
export FONTCONFIG_PATH="$APPDIR"/usr/conda/etc/fonts
178+
export FONTCONFIG_FILE="$APPDIR"/usr/conda/etc/fonts/fonts.conf
173179
EOF
174180

175181
exit 0

0 commit comments

Comments
 (0)