[Libreoffice-bugs] [Bug 139962] New: Creating a new .odt file from Win Explorer does not use default template

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jan 28 09:39:34 UTC 2021


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

            Bug ID: 139962
           Summary: Creating a new .odt file from Win Explorer does not
                    use default template
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: orwel01 at gmail.com

Description:
If your create your own template in Writer, creating a new text document from
Win Explorer (Right click - New - Text document) creates a document which is
not based on your new default template, but on a default empty soffice.odt file
stored in 

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 from Windows Explorer (mouse right click - New - Text
document Opendocument).

Actual Results:
The new created empty file is NOT based on default template.

Expected Results:
The new created empty file SHOULD BE based on default template.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Windows registry stores the default soffice.odt for ShellNew in the registry
key: Computer\HKEY_CLASSES_ROOT\.odt\LibreOffice.WriterDocument.1\ShellNew

You can create a new ODT file in Writer in 2 different ways:
1. LO - File - New
2. Win Explorer - right mouse click - New - Text document

For me as an user both possibilities of creating a new document should bring
the same result (new document based on own default template).

A possible solution could be:
By each create/re-save of own default template (LO-File-Templates-Manage) LO
should automatically rewrite the default file C:\Program
Files\LibreOffice\share\template\shellnew\soffice.odt (as it is pointed by Win
Shallnew registry key).

Important - the C:\Program
Files\LibreOffice\share\template\shellnew\soffice.odt file should not be (in
possible solution above) rewritten by an update of LO.

I do know know if it is possible to make it working on Win environment with
more users as I do not know, if each user can use own (different) default
template... If the proposed solution is not possible, another solution could be
proposed:
- Each time LO opens a document based on the default C:\Program
Files\LibreOffice\share\template\shellnew\soffice.odt a proposal for importing
settings from the default template should appear and user could with one click
import all settings from the default template.

-- 
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/20210128/35aed7ee/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list