How to run each document Libreoffice with their independient processes?

I have the problem in LO Calc, when I try to open a large document something from MS Office to migrate from XLSX to ODs then sometimes LO crash. For this motive, I wish to run each document in LibreOffice with their own processes.

Any help?

I use Fedora 42 Silverblue but before migrate from Windows I had same problem

Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 12; OS: Linux 6.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded

→ --convert-to commands in parallel: possible? - #2 by mikekaganski
→ Multiple user profiles for parallel processing with custom configuration changes in user profiles
…
LibreOffice user profile - The Document Foundation Wiki

OK I was reading, but how can I create multiple profiles for each LibreOffice document?

:thinking:

LO does it :
LibreOffice user profile - The Document Foundation Wiki

For Linux:
soffice -env:UserInstallation=file:///tmp/test

1 Like

There is no central setting for this (unless you change the code).
The method @fpy has shown requires you to give different profiles when starting. Depending on your method of work/ how you open files you may need to replace the /test with a unique id for every instance, but this can be done easily in bash.

Disadvantages of the “naive” approach:

  • You will start with fresh settings each time, so “your” marcros, dictionaeies etc. are missing (unless you copy your profile each time)
  • Everything remembered in your profile will be lost for the files started with random profiles. (One could use hashes of pathnames for a per file profile)
  • Profiles per file may waste a lot of space, so there may be need to develop some code to remove unused/old profiles
  • The command-line is not used, if you just create/open a new/another document from the menus of LibreOffice or with keyboard shortcuts. So this documents will be in the same process as the document from where they were started.
1 Like