Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 10672  / 2 Years ago, tue, august 16, 2022, 11:01:25

Is this possible? I want to make my own config file for my customizations that I can apply whenever I reinstall my system. For example, Ubuntu's default font color is just stupid. I want it to be BLACK and not dark grey. And I want to turn on autosave every 3rd minute and backup files.



Is there a config file that I can change? The .libreoffice/* folders and XML files doesn't make sense, and they don't seem to change when I change stuff in LibreOffice. Could someone please help me out with this? Thanks.


More From » libreoffice

 Answers
0

Looks like I found the answer to my own question once again. According to this post over at Ask Libreoffice, the config file ~/.config/libreoffice/*/user/registrymodifications.xcu is the one to look at. It's a huge XML file, which could make it a bit tricky to modify via command line, but if you just create your own registrymodifications.xcu right after you install LibreOffice, you can just add your custom options first in an almost empty file as a template, and LibreOffice will append what's missing when you start it.



Remember to start your file with



<?xml version="1.0" encoding="UTF-8"?>
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


And end it with



</oor:items>


Anyway, the XML nodes that I wanted to change are these:



Turn autosave on/off



<item oor:path="/org.openoffice.Office.Common/Save/Document">
<prop oor:name="AutoSave" oor:op="fuse">
<value>false</value>
</prop>
</item>
(...)
<item oor:path="/org.openoffice.Office.Recovery/AutoSave">
<prop oor:name="Enabled" oor:op="fuse">
<value>false</value>
</prop>
</item>


Change the <value>false</value> to <value>true</value> in both places to enable.



Set autosave interval. Default is 15 minutes.



<item oor:path="/org.openoffice.Office.Common/Save/Document">
<prop oor:name="AutoSaveTimeIntervall" oor:op="fuse">
<value>15</value>
</prop>
</item>
(...)
<item oor:path="/org.openoffice.Office.Recovery/AutoSave">
<prop oor:name="TimeIntervall" oor:op="fuse">
<value>15</value>
</prop>
</item>


Change the <value>15</value> to <value>YourInterval</value> both places.



Change default text color to BLACK instead of DARK GREY



<item oor:path="/org.openoffice.Office.UI/ColorScheme/ColorSchemes/org.openoffice.Office.UI:ColorScheme['LibreOffice']/FontColor">
<prop oor:name="Color" oor:op="fuse">
<value xsi:nil="true"/>
</prop>
</item>


Change the <value xsi:nil="true"/> to <value>0</value>.



Turn off auto suggested words (annoying feature, IMO)



<item oor:path="/org.openoffice.Office.Writer/AutoFunction/Completion">
<prop oor:name="Enable" oor:op="fuse">
<value>true</value>
</prop>
</item>


Change the <value>true</value> to <value>false</value> to disable.



Change autosave path to $CONFIGDIR/tmp instead of /tmp



/tmp gets purged at reboot, so if your computer crashes or the power goes out, you're not in luck by using the default settings in LO.



<item oor:path="/org.openoffice.Office.Paths/Paths/org.openoffice.Office.Paths:NamedPath['Temp']">
<prop oor:name="WritePath" oor:op="fuse">
<value>$(user)/tmp/</value>
</prop>
</item>


LibreOffice/OpenOffice creates the directory for you if it doesn't exist. There's already a $(user)/temp folder, but no one seems to know what it's for. To be sure, I created a new one just called tmp.


[#41764] Tuesday, August 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ithriv

Total Points: 46
Total Questions: 115
Total Answers: 96

Location: Malaysia
Member since Wed, May 11, 2022
2 Years ago
ithriv questions
Tue, Mar 14, 23, 14:31, 1 Year ago
Wed, Oct 5, 22, 02:59, 2 Years ago
Fri, Mar 11, 22, 10:12, 2 Years ago
Thu, May 11, 23, 10:55, 1 Year ago
Sun, Sep 26, 21, 06:47, 3 Years ago
;