Often a bug or other problem that keeps a big, complicated application (like LibreOffice or Firefox) from starting correctly is triggered by something in the profile of the user who runs it, that is, in user-specific configuration files. When this happens, you can rename the folder that contains these files (or delete it), which effectively clears the profile and causes a new one to be automatically generated, usually without the problem.
Most graphical applications store their user-specific configuration data in a folder inside the
.config folder which is itself in your home directory:
- Press Ctrl+H in Nautilus (this also works in most other file browsers) to show files and folders whose name start with
- Go into the
.config folder in your home folder.
- Find the folder (inside
- Make sure LibreOffice is not running. In this specific case it appears to be exiting completely after giving you the error, so you don't have to do anything for this step.
- Rename this
libreoffice folder to
Or if you prefer a console way:
- Open a Terminal (Ctrl+Alt+T).
- Make sure LibreOffice is not running.
- Rename the profile folder with the command:
cd ~/.config && mv libreoffice libreoffice.old
It appears from your comments that moving the
libreoffice user profile folder aside like this has worked for you. In cases where you don't still need to use any information from the old profile, this is a complete solution. (In other cases, this is a workaround or partial solution.)
If you don't need your old LibreOffice settings, words added to spell-checking dictionaries, or any other user-specific configuration data for LibreOffice, then this solution is all that you need.
More generally, this technique is especially likely to work when there is an indication that the problem is user-specific. In your case, troubleshooting revealed:
LibreOffice ran successfully when you logged in as a Guest.
LibreOffice ran successfully when launched with
gksu, which ran it as root. While sometimes this succeeds by overcoming permissions problems (when it does, this should be considered a workaround rather than an ultimate solution except for utilities that do actually require root privileges), often this succeeds simply because it uses a different user account with a different profile.
Unlike running it with straight
sudo (which should not be done),
sudo -H libreoffice, or
sudo -i libreoffice make
libreoffice use the LibreOffice profile in the root user's home folder (
/root), creating it if it doesn't already exist.
Of course, you should not run LibreOffice to do actual work with it, as it is best to avoid running programs--especially large graphical programs that may contain security vulnerabilities due to their compexity--as the root user.