[Libreoffice-bugs] [Bug 125769] Save as" offers .ott as default file type if you use a template to create odt-file from desktop

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jan 27 12:52:10 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=125769

Orwel <orwel01 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |UNCONFIRMED
     Ever confirmed|1                           |0

--- Comment #14 from Orwel <orwel01 at gmail.com> ---
Hi Martin,
I did a one hour testing and i found the problem which i had:

As LO rewrites every time the changed path for creating a new document(see
reported bug 94857) I have to change the WIN registry key
Computer\HKEY_CLASSES_ROOT\.odt\LibreOffice.WriterDocument.1\ShellNew -
FileName after every update of LO.

The key issue is: I point this Registry key every time to my own personal
template which i use (this means an .ott file of mine).
I have to mention that the default registry key does not point to a template
file, but to an .odt file: C:\Program
Files\LibreOffice\share\template\shellnew\soffice.odt, which i notice only yet
by updating to LO 7.0.4.

The problem I was confronted with is that if in this registry key is set a
template (.ott file), after creating a new LO writer document through Win
Explorer - mouse right click - New - Text document OpenDocument, LO opens it as
new document (Untitled) correctly based on my own template, but somehow (I do
not know why) it remembers, it was created from a template (in opposite
creating it by double clicking on the template from Win-Explorer directly) and
this information (that it is a template) is remembered somewhere. In this case,
if you try to save this document (SAVE AS...), you get opened the SAVE AS
window with .ott proposal (SEE attached PIC1).


Otherwise (as mentioned), if you have set your own template (the same as used
for the registry key - see above) and create a new document directly from LO in
any way of these 2:
1. Open LO-writer-File-New text document or
2. Double click on the template file (see above) directly in Windows Explorer 
in both cases you get in the SAVE AS window (correctly) proposed .odt file (SEE
attached PIC2).

So the behavior of LO by creating a new empty document for users who want to
use their own template is not the same.
My fault was I did not noticed (years ago), that the default WIN registry KEY
for a new .odt file point to the file soffice.odt and not to the normal.ott
template.

But I think, there should be the some way for LO to handle the changed registry
key value (pointing to .ott) in the same way, as you open a new file by a
double click on the template itself in Windows explorer. For me as a user there
should be no difference.

STEPS to reproduce:
1. create your own template (with some Numbering etc., or use my test_template,
attached)
2. put it in some folder, make it default by LO-Writer.
3. try opening a new file (in both ways as described above with correct result)
and SAVE AS... it
4. Change the default win registry key (above) to this template, create a new
document by WIN-explorer mouse right key - NEW and try SAVE AS...

BEHAVIOR:
1. Opening a new empty document by a/ double click on this template or b/
LO-Writer-File-New-Document makes LO open a new empty document created from the
template. If you SAVE AS this document, you get correct proposal of saving the
file as .odt.

2. Opening a new empty document by Win Explorer - mouse right click - New
-OpenDocument makes LO open a new empty document which:

2.1 is not based on default own-created template (if you do not change the
registry key
Computer\HKEY_CLASSES_ROOT\.odt\LibreOffice.WriterDocument.1\ShellNew -
FileName (and SAVE AS works correctly) OR
2.2 is based on the new own-created template (if you have changed the registry
key in a/) BUT SAVE AS propose to save the new file as a template (.ott).

EXPECTED BEHAVIOR: All 3 described possibilities to open a new empty document
based on your own template should bring the same result.
a/ Registry change should not be rewritten (see bug 94857) and creating a new
empty document from Win explorer should make the same as double click on the
template itself if you change the registry key to an .ott file or opening it
directly from LO as a new document - the result should be a new document based
on your own template,
b/ make the default soffice.odt point to the changed (default) template,
c/ any other solution of the problem...

THE actual possible SOLUTION IS to create an empty file from your own template
and point the registry key to this file. PROBLEM is you must not forget to
re-save your own template to this file every time you made some change to the
default template, which is not a user friendly solution.

I do not know, if this BUG should be closed or not. I will place a copy of this
comment also to bug 94857. But should I open a new Bug instead maybe? Please
let me know.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210127/05986ab5/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list