I have ubuntu and have some default templates for writer, calc, and impress. where i need to put them to be they default ?
I need to multiple it to all users as default templates.
the same was in windows, that helped me in this tichet.
Common with your previous (Windows-specific) question, we have some information on the general deployment and post-deployment configuration in the wiki.
You have to define some config options’ values on shared level, or maybe on user level per-user. The proper (supported) way, that woks everywhere (be it Linux, Windows, or macOS), is a configuration extension. It is described a bit there in the wiki, with a PDF, and an example extension.
Then the task would be, how to deploy that extension. A startup script, which would run unopkg
, would be needed; either per system (and then it would install the extension in shared mode), or per-user.
so i have my template - Template.ott. i think i will apply it with ansible. but where it need to apply to work as default ?
You read the documentation, use it to find the needed configuration parameter (already done in the previous question), create a configuration extension according to the tutorial from the wiki, and deploy it using the method that you use. All data is there, and I pointed to it. If that’s impossible for you, then you may hire someone, or hope that someone decides to do the whole work for fun at some point here.
thank you !
i tried a little bit another way.
copied all templates firstly.
#templates for default open
cp /home/user/Desktop/impressTemplate.otp /home/user/Templates/
cp /home/user/Desktop/calcTemplate.ots /home/user/Templates/
cp /home/user/Desktop/writerTemplate.ott /home/user/Templates/
-
then go open writer,calc, impress. File - Templates- Manage Templates - Set as default (my template)
-
Then i can copy registrymodifications.xcu to another pc, to have they default templates.
cp registrymodifications.xcu /home/user/.config/libreoffice/4/user/
- and this one is for custom classification
#example classification template
sudo cp example.xml /usr/lib/libreoffice/share/classification/