Bug 422833 - Choose template for creating libreoffice documents
Summary: Choose template for creating libreoffice documents
Status: REPORTED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-11 16:31 UTC by livier
Modified: 2020-07-02 14:43 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description livier 2020-06-11 16:31:12 UTC
SUMMARY

Choose template for creating libreoffice documents

STEPS TO REPRODUCE
1. When in a folder panel, right click
2. "créer un nouveau" (create a new) -> LibreOffice Writer
3. 

OBSERVED RESULT

Opens a libreOffice document that default langage is English,
It does not respect my default language setting 
I suppose it uses a template for new documents that setup the language and is not under my control.
Never found where this template is setup, I should have change it.

EXPECTED RESULT

Would like to choose witch model to use for creation of writers documents.
it should be the default model I setup in LibreOffice Options. 

SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.19
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Kernel Version: 4.15.0-66-generic
OS Type: 64-bit
Processors: 2 × AMD Athlon(tm) II X2 245 Processor
Memory: 11,5 Gio de mémoire vive
Graphics Processor: AMD RS880 


ADDITIONAL INFORMATION
Comment 1 Wolfgang Bauer 2020-07-01 10:04:07 UTC
KDE doesn't ship any template for creating libreoffice documents AFAIK.

(Well, calligra comes with templates for ODF files, but they don't have any mention of "LibreOffice"... ;-) )

So this is rather an issue in your distribution IMHO.
Reassigning to KDE Neon therefore.

You should be able to find the template files in /usr/share/templates/ (and /usr/share/templates/.source/) though, I suppose.
Comment 2 livier 2020-07-02 01:22:57 UTC
Thanks, 
knowing to find the template files in /usr/share/templates/ ...
helped

It would be cool if I could choice the template used at user side, as 
~/.local/templates or so.

Thanks doing the best

Have a nice day
Comment 3 Wolfgang Bauer 2020-07-02 08:21:20 UTC
> It would be cool if I could choice the template used at user side, as 
> ~/.local/templates or so.
~/.local/share/templates/ is respected too (and complements /usr/share/), so it is indeed possible to add or modify templates at user side.

Files in /usr/share/ are overridden by files with the same name in ~/.local/share/, so you can copy existing ones and modify them to your likings, or add completely new templates in ~/.local/share/templates/.

Note that a template usually consists of two files:
- share/templates/xxx.desktop that describes the template
- share/.source/something that is the actual file that gets copied when you choose "Create New"

The former can refer to the latter via a line like this:
URL=.source/TextDocument.odt

See also https://forum.kde.org/viewtopic.php?f=224&t=119342 (this was from KDE4 times, but it should still apply, only the locations have changed)
Comment 4 livier 2020-07-02 14:43:41 UTC
> Files in /usr/share/ are overridden by files with the same name in ~/.local/share/

Good to know the overidden way. 
Why did not I undertand it before, never found it in documentation !
Is there a place for that kind of things ?
otherwise it should be good to share this info ;-)

Question, 
Is it a standart Linux possibility, 
or debian/ubuntu specific, 
or kde specific ... ? 

Thanks for all explications
and sory for my english ;-)