View Issue Details

IDProjectCategoryView StatusLast Update
0016355ScribusGeneralpublic2020-11-25 16:49
Reportertanty Assigned To 
Status newResolutionopen 
Product Version1.5.6 
Summary0016355: The "-g" command line option doesn't really do as described by the help

$ scribus --help
Scribus, Open Source Desktop Publishing

Usage: scribus [options] [files]

     -fi, --font-info Show information on the console when fonts are being loaded
     -h, --help Print help (this message) and exit
     -l, --lang Uses xx as shortcut for a language, eg `en' or `de'
     -la, --langs-available List the currently installed interface languages
     -ns, --no-splash Do not show the splashscreen on startup
     -nns, --never-splash Stop showing the splashscreen on startup. Writes an empty file called .neversplash in ~/.config/scribus
     -pr, --prefs <path> Use path for user given preferences location
     -pi, --profile-info Show location of ICC profile information on console while starting
     -u, --upgradecheck Download a file from the Scribus website and show the latest available version
     -v, --version Output version information and exit
     -py, --python-script <script> [arguments ...] Run script in Python [with optional arguments]. This option must be last option used
     -g, --no-gui Do not start GUI
     -- Explicit end of command line options

Therefore, passing "-g" should not show the GUI at all. Even more, it should work without a graphical system.

However, that's not the case. At least, not as expected by the help description.
Steps To ReproduceFile used:

If we run the script:

$ scribus testdoc.sla -ns -g -py -type 'PNG' -quality 100 -transparentBkgnd 1 -name 'test.png' -scale 100 -dpi 96

I can see the GUI appearing and disappearing.

Even more, without an X DISPLAY it doesn't work at all:

$ DISPLAY="" scribus testdoc.sla -ns -g -py -type 'PNG' -quality 100 -transparentBkgnd 1 -name 'test.png' -scale 100 -dpi 96
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Additional InformationI assume this change is not simple.

It would be great if this could work without the need for a graphical system but, at least, the help should be updated to better explain which is the purpose of the "-g" argument.
TagsNo tags attached.



2020-11-25 16:49

reporter   ~0048490

I suppose passing the QT_QPA_PLATFORM=offscreen env var could work around this limitation, but it's not the cleanest ...

Issue History

Date Modified Username Field Change
2020-11-25 16:44 tanty New Issue
2020-11-25 16:49 tanty Note Added: 0048490