File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 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+
162165popd
163166
164167# generate linuxdeploy-plugin-conda-hook
@@ -170,6 +173,9 @@ cat > "$APPDIR"/apprun-hooks/linuxdeploy-plugin-conda-hook.sh <<\EOF
170173export APPDIR="${APPDIR:- $(readlink -f " $( dirname " $0 " ) " )} "
171174# export PATH to allow /usr/bin/env shebangs to use the supplied applications
172175export 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
173179EOF
174180
175181exit 0
You can’t perform that action at this time.
0 commit comments