dubhater / D2VWitch

Cross-platform D2V creator
36 stars 6 forks source link

Cannot run without a display device #3

Closed rzumer closed 7 years ago

rzumer commented 7 years ago

On Debian Jessie, with no display device, the following error is displayed when attempting to run D2VWitch v2 from the command line:

QXcbConnection: Could not connect to display
Aborted

It seems to occur regardless of any command line options, so I assume it involves the logic for displaying the graphical user interface. If so, would it be possible to add an option at compilation and/or launch time to disable any graphical elements?

dubhater commented 7 years ago

Maybe I'll make Qt optional at compile time. In the meantime, the best I can offer is a workaround: add the option -platform offscreen to every invocation of d2vwitch.

rzumer commented 7 years ago

That workaround does seem to work with input and output files set correctly, thank you for the information.

dubhater commented 7 years ago

Found a nicer solution.