[This issue can be applied to any Libreoffice software. I use Libreoffice Calc here as a demonstration.] $libreoffice --calc For example, the command adds these settings (but not limited to) to ~/.config/libreoffice/4/user/registrymodifications.xcu <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="AddNonBreakingSpace" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="CapitalAtStartSentence" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="ChangeDash" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="ChangeOrdinalNumber" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="ChangeUnderlineWeight" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="CorrectAccidentalCapsLock" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="DoubleQuoteAtEnd" oor:op="fuse"><value>0</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="DoubleQuoteAtStart" oor:op="fuse"><value>0</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect/Exceptions"><prop oor:name="CapitalAtStartSentence" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect/Exceptions"><prop oor:name="TwoCapitalsAtStart" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="RemoveDoubleSpaces" oor:op="fuse"><value>false</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="ReplaceDoubleQuote" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="ReplaceSingleQuote" oor:op="fuse"><value>false</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="SetInetAttribute" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="SingleQuoteAtEnd" oor:op="fuse"><value>0</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="SingleQuoteAtStart" oor:op="fuse"><value>0</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="TwoCapitalsAtStart" oor:op="fuse"><value>true</value></prop></item> <item oor:path="/org.openoffice.Office.Common/AutoCorrect"><prop oor:name="UseReplacementTable" oor:op="fuse"><value>true</value></prop></item> I need them to be added so I can modify them with a Bash script instead of copying an outdated registrymodifications.xcu.
Typo above, it should be: For example, the command do not add add these settings (but not limited to) to ~/.config/libreoffice/4/user/registrymodifications.xcu
registrymodifications.xcu contains only items that have values different from the default values (hence *modifications*), which is the reason why they are not added. Anyway, why don't you just create the settings you need if the file doesn't exist or a modified setting doesn't exist?
I want to be able to make everything safely customized from scratch from the terminal.
Not all setting is displayed even with libreoffice --calc. Which means that not all settings can be modified with a bash script. *** This bug has been marked as a duplicate of bug 108787 ***