algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
235 stars 51 forks source link

Scribus: check_dependency under Xvfb to avoid errors. #105

Closed JulienPalard closed 5 years ago

JulienPalard commented 5 years ago

J'en ai pro^W^W^WI also added a check for Xvfb in scribus dependencies leading to:

$ preview --check-dependencies
✓ ImagePreviewBuilderWand wand 0.5.3 from /home/mdk/.venvs/3.7.2/lib/python3.7/site-packages/wand
✓ ImagePreviewBuilderPillow PIL 6.0.0 from /home/mdk/.venvs/3.7.2/lib/python3.7/site-packages/PIL
✓ ImagePreviewBuilderInkscape Inkscape 0.92.4 (5da689c313, 2019-01-14) from /usr/bin/inkscape
✓ ImagePreviewBuilderIMConvert Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org from /usr/bin/convert
✗ DocumentPreviewBuilderScribus is missing a dependency:  Can not find Xvfb. Please install it and try again.
✓ OfficePreviewBuilderLibreoffice LibreOffice 6.3.0.4 30(Build:4) from /usr/bin/libreoffice
✓ PlainTextPreviewBuilder LibreOffice 6.3.0.4 30(Build:4) from /usr/bin/libreoffice

So in case scribus is installed and xvfb is missing we're giving DocumentPreviewBuilderScribus is missing a dependency: Can not find Xvfb. Please install it and try again. (previously in this case, an exception was unhandled).