I use Slicer CLI modules as pilar of a pipeline executed in a Ubuntu server from a web page located in an Apache Tomcat hosted by that server.
I would like to create a mrb file containing the scene to be used but when I invoke Slicer for this purpose I’m having a "SlicerApp-real: cannot connect to X server " message.
Is it possible to do this task without opening the GUI?
Thanks in advance.
PS: This is the sentence that I use:
Slicer --no-splash --python-script composeScene.py -i file1.nii … -i fileN.nii -o output.mrb >> scriptPython.log. The script just loads all the input files and set a few details about the window location which are not essential.