Cannot open LibreOffice files, why?

Please, please, please use comments unless you are posting a solution.
When you add a comment, or even when you post a solution, the menu @PKG shows is at the top of the box where you type your answer.

Note if you reply by email, those options aren’t available.

2 Likes

Okay, this is all strange compared to the regular forums I use…

The only reason I want to post a screenshot is to show that I’m not an idiot and it was ‘soffice.com.’
0622badinstructions

"Run" function under Windows 11:

Right-click on the Windows icon in the taskbar.

78463 HB Cannot open-01

Select “Run” from the drop-down menu.



In the “Run” dialog, enter the desired command in the “Open:” line.

78463 HB Cannot open-03


See also:

Apply command line

Okay, I’ve got more information here than I can jump over, but going back to the first link Floris gave me, I can follow those instructions now I know where ‘run’ is.

But, to be clear, should I use ‘soffice.com’ or ‘soffice.env’ when I do this? The instructions, as shown in my screen shot clearly show ‘soffice.com’ but you are telling me here that it should be ‘soffice.env’.

I think it is a misunderstanding on your part.
Nobody wrote that you should use soffice.env.

Here again the two lines from @karolus:
soffice.exe -env:UserInstallation=file:///c:/my-test-profile
soffice -env:UserInstallation=file:///c:/my-test-profile

The second version has no Extend, i.e. it only says “soffice” without dot and Extend.
Extend is the so-called attachment, e.g. “.exe”.
Both versions of @karolus work for me!

Why does “.com” not work?
You can test it, you will get a message immediately: “soffice.com” could not be found.
Make sure you entered the name correctly and repeat the process.

So again, use an input suggested by @karolus :
soffice.exe -env:UserInstallation=file:///c:/my-test-profile
soffice -env:UserInstallation=file:///c:/my-test-profile

These lead to the result that LibreOffice is opened.


Here again as a screenshot:

78463 HB soffice


PS:
Please keep in mind that all documentations are made by humans. In this respect, an error can also creep in once in a while.

Of course, that’s just a test to see if there’s corruption. Assuming there is, there’s a different instruction:

Resolving corruption

Many problems in LibreOffice can be caused by corruption in the user profile.

"When noticing strange behavior in LibreOffice the first thing to do is to reset the user profile. To do so, 2 methods are available.
Help wizard (LibreOffice 5.3 and newer)

Start LibreOffice and select Help ▸ Restart in Safe Mode
    In the Enter Safe Mode dialog select Restart
    LibreOffice will restart and display the Safe Mode dialog
**If your problem is that LibreOffice does not start at all, launch it from the

command line with libreoffice --safe-mode or use the start menu entry LibreOffice
(Safe Mode) on Windows**

Select Continue in Safe Mode
Test and see if the problem is gone.
    If the problem persists, you can exit the safe mode because the user profile was not the cause of the problem.
    If the problem is solved, something is wrong with your configuration. Start LibreOffice in safe mode again to see the safe mode dialog. You can now try to disable Hardware acceleration or to restore/reset your user profile."

So how do I ‘launch it from the command line’?

Maybe it would help if I knew what a command line is and where it’s found?

@Ray-Bell

Maybe it would help if I knew what a command line is and where it’s found?

That was answered above in the second of three posts by @Hrbrgr. Many here are trying to help you. I understand that you feel that you have been given more information than you can jump over, so it might help if you could spend more time just reading the replies to your original question, instead of posting new supplemental questions without first absorbing the information that they are giving you. We all know how hard, and frustrating, it can be to have to learn new things. But it can be an invigorating experience.

1 Like

Not exactly. He didn’t say that ‘Run’ equalled ‘Command’, so I didn’t know that. Now I am trying that, with the instruction from the site telling me to put ‘libreoffice --safe-mode’ into the ‘Run’ panel:
0622libreofficeproblem1

And the message I keep coming up with is:

So where do we go from there?

From here, I would try two different things :

  1. Re-read what @karolus wrote and then put this in the command box for the Windows Run :

soffice.exe -env:UserInstallation=file:///c:/my-test-profile

See what happens and follow any further instructions, keeping in mind what @karolus and @Hrbrgr have written.

  1. If that didn’t help to solve the problem, with a little exploration and experimentation, then I would open the Windows file manager (whatever they call it now) and find the program files for LibreOffice. Somewhere there will be a file named soffice.exe. Right-click on that file name and see if you are offered the opportunity to Run that file. Once LibreOffice has started, click on the Help menu header and then click on Restart In Safe Mode.

Note that you will still have to deal with the fact that Microsoft does not want you to run this non-Microsoft program. That can be fixed, in one way as pointed out in the first post by @Hrbrgr, and in another way known only to users of Windows 11 (of which I am not).

I hope this helps.