we can’t pass the parameter from the code itself.
There are 3 things that affect LO on startup (see rtl/bootstrap.h for more info): The info shown below is under Debian (note that Linux server software is freely available, of course):
- Boot parameters
To obtain boot help:
~$ /opt/libreoffice5.0/program/soffice.bin --help | head -8
LibreOffice 5.0.0.5 437e4abdf9e72fd0a6e6f8697a0e659bc77f9b10
Usage: soffice [options] [documents...]
Options:
--minimized keep startup bitmap minimized.
--invisible no startup screen, no default document and no UI.
--norestore suppress restart/restore after fatal errors.
-
configuration files
(look at the Wiki for personal config location)
(there is also global config - it is horribly complex)
-
environment variables
(look at the Wiki for a list, including how to find them for yourself)
Discovering the latter 2 is easier said than done. I shall update this as & when I discover the information.
Update 15 March:
I’ve spotted in the 5.1 Release Notes that you can obtain a list of the default bootstrap options from code:
com.sun.star.comp.helper.Bootstrap
List list = Arrays.asList( Bootstrap.getDefaultOptions() );