Hello Andrew, setting DISPLAY="" is the quickest way to test how it works on a headless system. I intend to do this so I took the time to make it run and some magic tools lead the way - This is the expanded command 3) from above with ltrace added:
Code: Select all
DISPLAY="" LD_LIBRARY_PATH="/opt/qcad" ltrace -CS -f -n2 /opt/qcad/qcad-bin -no-dock-icon -no-gui -allow-multiple-instances -platform offscreen -autostart "scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js" /opt/qcad/dwg2pdf -f /tmp/MY.dxf 2>/tmp/out.txt
It not only loads gtk, it even loads libvorbis e.a! A look at what it wants from those libs, its
native Themeing. Voilà the working command:
Code: Select all
QT_STYLE_OVERRIDE="" QT_QPA_PLATFORM=offscreen QT_QPA_FONTDIR=/usr/share/fonts/ DISPLAY="" LD_LIBRARY_PATH="/opt/qcad" ltrace -CS -f -n2 /opt/qcad/qcad-bin -no-dock-icon -no-gui -allow-multiple-instances -autostart "scripts/Pro/Tools/Dwg2Pdf/Dwg2Pdf.js" /opt/qcad/dwg2pdf -f /tmp/MY.dxf 2>/tmp/out.txt
Remember that recently you dropped "-style plastique" from the starter batch? I did suggest that
A consolidated patch for dwg2pdf soon to appear in flyspray…
Peter