libreoffice converstion of egistrymodifications.xcu user items to systemwide xml registry share

Jelle de Jong jelledejong at
Fri Apr 12 09:53:32 UTC 2019

Thank you Stpehan!!

I created the /usr/lib/libreoffice/share/registry/data/ directory and 
addeded my registrymodifications-system-wide.xcu and this seems to work.

Thank you very much for the right syntax and hints!

Kind regards,

Jelle de Jong

- name: create /usr/lib/libreoffice/share/registry/data/ directory
     path: /usr/lib/libreoffice/share/registry/data/
     state: directory
   when: ansible_distribution == 'Linuxmint'
   tags: libreoffice

- name: copying registrymodifications-system-wide.xcu to 
     src: registrymodifications-system-wide.xcu
   when: ansible_distribution == 'Linuxmint'
   tags: libreoffice

On 12/04/2019 10:13, Stephan Bergmann wrote:
> On 11/04/2019 21:17, Jelle de Jong wrote:
>> I am trying to convert changes to 
>> /home/$USER/.config/libreoffice/4/user/registrymodifications.xcu into 
>> systemwide configuration for users that start libreoffice for the 
>> first time under linux with systemwide settings.
>> I tried placing a xml file in 
>> /usr/lib/libreoffice/share/registry/registrymodifications-system-wide.xcu 
>> but I can not seem to get the syntax right.
> Directly in share/registry/ the file would need to have .xcd extension 
> and adhere to officecfg/registry/data.dtd.  That means that those <item 
> oor:path="..."> elements would not be supported, just the more tedious 
> hierarchical <node oor:name="..."> ones (see 
> officecfg/registry/component-update.dtd for details; seems I never came 
> around to lifting the requirement that an .xcu nested inside an .xcd can 
> only have an oor:component-data top-level element, not an oor:items one).
> However, the share/registry/ config layer also supports .xcu files in a 
> data/ sub-dir, so similar to the hack of adding a 
> share/registry/registrymodifications-system-wide.xcd you could use the 
> hack of adding a 
> share/registry/data/registrymodifications-system-wide.xcu into which you 
> could easily copy-paste items from a registrymodifications.xcu:
>> <?xml version="1.0"?>
>> <oor:items xmlns:xs="" 
>> xmlns:xsi=""
>>  xmlns:oor="">
>>   <item oor:path="/org.openoffice.Office.Common/Save/Document"><prop 
>> oor:name="WarnAlienFormat" 
>> oor:op="fuse"><value>false</value></prop></item>
>>   <item 
>> oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['']"><prop 
>> oor:name="ooSetupFactoryDefaultFilter" oor:op="fuse"><value>MS Word 
>> 2007 XML</value></prop></item>
>>   <item 
>> oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['']"><prop 
>> oor:name="ooSetupFactoryDefaultFilter" oor:op="fuse"><value>Impress MS 
>> PowerPoint 2007 XML</value></prop></item>
>>   <item 
>> oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['']"><prop 
>> oor:name="ooSetupFactoryDefaultFilter" oor:op="fuse"><value>Calc MS 
>> Excel 2007 XML</value></prop></item>
>> </oor:items>
> (The non-hacky way, of course, is to create an .oxt LO extension that 
> you install system-wide.)
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: registrymodifications-system-wide.xcu
Type: text/xml
Size: 1061 bytes
Desc: not available
URL: <>

More information about the LibreOffice mailing list