]> git.plutz.net Git - lobster/commitdiff
environment variables and redirect for libreoffice
authorPaul Hänsch <paul@plutz.net>
Sat, 23 Jan 2021 13:19:08 +0000 (14:19 +0100)
committerPaul Hänsch <paul@plutz.net>
Sat, 23 Jan 2021 13:19:08 +0000 (14:19 +0100)
courses/export_pdf.sh

index eaecbde32ec16de6c1719133e0e78d2e4aa5e8c8..3e5593d2b8a439a4b13d1dd622ea064a11e765be 100755 (executable)
@@ -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##*/}"