View Issue Details

IDProjectCategoryView StatusLast Update
0016354ScribusScripterpublic2020-11-26 00:01
Reportertanty Assigned Tojghali  
Status closedResolutionno change required 
Product Version1.5.6 
Target VersionFixed in Version 
Summary0016354: Using a python script in the command line, Scribus consumes the "-name" argument

$ 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, "-name" is not a listed argument and any argument passed after the "-py" argument should be passed to the python script.

However, "-name" is not passed to the script:
Steps To ReproduceIf we run the attached script:

$ ls testdoc.sla
$ scribus testdoc.sla -ns -g -py -type 'PNG' -quality 100 -transparentBkgnd 1 -name 'test.png' -scale 100 -dpi 96
['', '-type', 'PNG', '-quality', '100', '-transparentBkgnd', '1', '-scale', '100', '-dpi', '96']
$ ls ImageExport.png testdoc.sla
TagsNo tags attached.



2020-11-25 16:29

reporter (1,574 bytes)


2020-11-25 17:37

administrator   ~0048491

Last edited: 2020-11-25 17:54

View 2 revisions

Unable to reproduce. The printed value is here:
['', '-type', 'PNG', '-quality', '100', '-transparentBkgnd', '1', '-name', 'test.png', '-scale', '100', '-dpi', '96']
So... as expected.


2020-11-25 21:56

reporter   ~0048492

You are right, this is invalid.

I was running this with the flatpak version, like:

$ flatpak --user --env="QT_QPA_PLATFORM=offscreen" run net.scribus.Scribus testdoc.sla -ns -g -py -type 'PNG' -quality 100 -transparentBkgnd 1 -name 'test.png' -scale 100 -dpi 96

And I was having this problem. However, if I run the command from within flatpak, this is not reproducible:

$ flatpak --user --env="QT_QPA_PLATFORM=offscreen" run --command=sh net.scribus.Scribus
$ scribus testdoc.sla -ns -g -py -type 'PNG' -quality 100 -transparentBkgnd 1 -name 'test.png' -scale 100 -dpi 96

Hence, the problematic point here is flatpak.


2020-11-26 00:01

administrator   ~0048493

Thanks for the confirmation.

Issue History

Date Modified Username Field Change
2020-11-25 16:29 tanty New Issue
2020-11-25 16:29 tanty File Added:
2020-11-25 17:37 jghali Note Added: 0048491
2020-11-25 17:54 jghali Note Edited: 0048491 View Revisions
2020-11-25 21:56 tanty Note Added: 0048492
2020-11-26 00:01 jghali Assigned To => jghali
2020-11-26 00:01 jghali Status new => resolved
2020-11-26 00:01 jghali Resolution open => no change required
2020-11-26 00:01 jghali Note Added: 0048493
2020-11-26 00:01 jghali Status resolved => closed