Bug 157051 - Complaint about a missing template from the previous version's installation folder location
Summary: Complaint about a missing template from the previous version's installation f...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Templates Updates
  Show dependency treegraph
 
Reported: 2023-09-01 10:56 UTC by Eyal Rozenberg
Modified: 2023-10-02 07:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-09-01 10:56:43 UTC
I've recently upgraded LO 7.5 to 7.6 . Now, when I open Writer, I get the error message:

/opt/libreoffice7.5/share/template/common/styles/Default.ott does not exist

now, I do remember making kind of edit or another to the default template a few months ago. But - even if I did, this should certainly not happen: Either the edited template should be at a path within the user's home directory; or it should be at a path that's relative to the installation folder; or there should be some other handling of template paths which are invalidated by an update to a new version.
Comment 1 Stéphane Guillou (stragu) 2023-09-15 13:44:06 UTC
How did you edit the template in the first place?
I assume you uninstalled 7.5?
Does the message pop up in a dialog or in the console?
Please more information so we can try to reproduce.
Please also see bug 78707.
Comment 2 Eyal Rozenberg 2023-09-15 15:51:03 UTC
(In reply to Stéphane Guillou (stragu) from comment #1)
> How did you edit the template in the first place?

I don't remember... I'm sorry. It might have been related to trying to reproduce some other bug, where you need to have edited the default template. I'm not sure, sorry.

> I assume you uninstalled 7.5?

Yes, I have, and I was still getting this message.

> Does the message pop up in a dialog or in the console?

A dialog.


I'm sorry I don't have more information. But - this should be enough to have developers check the location of the default template, for the case of it somehow pointing to a previous installation's folder. Or some other appropriate heuristic.
Comment 3 QA Administrators 2023-09-16 03:22:12 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2023-10-02 07:14:41 UTC
Grepping through my user profile, I see .config/libreoffice/4/user/registrymodifications.xcu has paths like

$(brandbaseurl)/share/template/common/styles/Default.ott

So I guess in your case $(brandbaseurl) is still pointing to /opt/libreoffice7.5