From 92a5321fb50469eeaab98028c8c3afcda24cdf42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sat, 23 Jan 2021 14:19:08 +0100 Subject: [PATCH] environment variables and redirect for libreoffice --- courses/export_pdf.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/courses/export_pdf.sh b/courses/export_pdf.sh index eaecbde..3e5593d 100755 --- a/courses/export_pdf.sh +++ b/courses/export_pdf.sh @@ -123,9 +123,10 @@ style_td='style="border: 1pt solid; padding: 1mm 2mm; vertical-align: top;"' ]] EOF +export HOME="$_DATA" export XDG_CONFIG_HOME="$_DATA/xdg_config" export XDG_CACHE_HOME="$_DATA/xdg_cache" export XDG_DATA_HOME="$_DATA/xdg_local" -lowriter --convert-to pdf --outdir "$_DATA/export/" "$htmlfile" +lowriter --convert-to pdf --outdir "$_DATA/export/" "$htmlfile" >/dev/null REDIRECT "/export/${pdffile##*/}" -- 2.39.2