Currently, I am trying to pass arguments to my script in headless mode. I am using
- xvfb-run -a $HOME/Fiji.app/ImageJ-linux64 --ij2 --run myscript.py 'arg="argument" as a command in my shell and it works fine (I need a GUI unfortunately, that’s why I am using Xvfb).
Now I am wondering if I could hide the dialogue prompted by the
#@String arg parameter, since I don’t need it if it’s not in headless mode. Can I embed the parameter in a condition? Or is there a boolean type of variable that I could use to test whether something is headless or not?
Thank you very much!