Run Soffice with norestore parameter on Windows

We have an applet that launches LibreOffice in a web brower(IE8). We want to make sure that whenever we call the OpenOfficeApplet to launch LibreOffice that it launches with the norestore parameter. Is there anything we can do at the desktop level to do this as we can’t pass the parameter from the code itself.

thanks

Upgrade away from IE8 first.

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):

  1. 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.
  1. configuration files

    (look at the Wiki for personal config location)

    (there is also global config - it is horribly complex)

  2. 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() );