Menu

#129 Running dxf2code quitely opens a window

Fixed
chrisko
None
High
All
Defect
2022-01-03
2021-07-02
No

Running dxf2code quitely without GUI still invokes GUI for a brief moment. It is impossible to call help with dxf2code --help or run it quitely with dxf2gcode --quiet.

It has been tested on a Linux machine without any window manager (no way to open a window there, only terminal exists) and dxf2gcode won't work there even if ran quietly. Here's what the error looks like:

$ dxf2gcode -h
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

Discussion

  • Thanh Le

    Thanh Le - 2021-07-15

    Running dxf2gcode with --quiet flag is not really quiet. It needs to open GUI for a brief moment to initialize graphic objects.
    Thus, if you want to run with no physic display, run it with a virtual display like xvfb

    On linux:

    # Install and start xvfb
    $ sudo apt update -y && apt install xvfb
    $ Xvfb :1 -screen 0 1024x768x16 & 
    
    # Set pernament environments
    export QT_DEBUG_PLUGINS=1
    export QT_QPA_PLATFORM=xcb
    export DISPLAY=:1
    

    It worked well, i was tested

     

    Last edit: Thanh Le 2021-07-15
  • chrisko

    chrisko - 2021-09-27

    thanks for the hints.
    Did this solution work for you and i can close the ticket?

     
  • Nikita Letov

    Nikita Letov - 2021-09-30

    @christi_ko indeed, it works. Thank you and @thanhlx !

     
  • chrisko

    chrisko - 2022-01-03
    • status: New --> Done
    • assigned_to: chrisko
    • OpSys: --> All
     
  • chrisko

    chrisko - 2022-01-03

    Topic closed as solution described in WIKI now.

     
  • chrisko

    chrisko - 2022-01-03
    • status: Done --> Fixed
     

Log in to post a comment.

MongoDB Logo MongoDB