Launch LibreOffice with a Temporary Profile

Corrupted user configurations in LibreOffice often lead to unexpected crashes, missing toolbars, or sluggish performance. This guide explains how to launch LibreOffice with a fresh, temporary user profile to isolate and troubleshoot these issues without modifying or deleting your existing personal settings.

Method 1: Using LibreOffice Safe Mode

LibreOffice includes a built-in Safe Mode that temporarily disables hardware acceleration, user extensions, and custom settings.

Via the Graphical Interface

  1. Open LibreOffice normally.
  2. Click on Help in the top menu bar.
  3. Select Restart in Safe Mode.
  4. In the dialog box that appears, click Restart.
  5. When the Safe Mode configuration window opens, select Continue in Safe Mode to run LibreOffice with a clean, default profile.

Via the Command Line

You can also trigger Safe Mode directly from your terminal or command prompt by executing:


Method 2: Launching with a Custom Temporary Profile

If you want a completely isolated, disposable profile directory that does not interfere with your primary configuration, use the -env:UserInstallation command-line parameter.

On Linux

Run the following command in your terminal. This creates a temporary profile directory in the /tmp folder:

libreoffice -env:UserInstallation=file:///tmp/libreoffice_temp_profile

On macOS

Open the Terminal app and enter:

/Applications/LibreOffice.app/Contents/MacOS/soffice -env:UserInstallation=file:///tmp/libreoffice_temp_profile

On Windows

  1. Press Win + R to open the Run dialog.
  2. Enter the following command (adjust the LibreOffice path if installed in a custom location):
"C:\Program Files\LibreOffice\program\soffice.exe" -env:UserInstallation=file:///C:/temp/libreoffice_temp_profile

Note: Ensure the target folder (such as C:\temp) exists before executing the command.


Troubleshooting and Cleanup