[Libreoffice] XDG config migration

Petr Mladek pmladek at suse.cz
Wed Dec 7 06:18:27 PST 2011


Petr Mladek píše v St 07. 12. 2011 v 14:58 +0100:
> Petr Mladek píše v Út 06. 12. 2011 v 19:57 +0100:
> > I see that it even creates the file ~/.libreoffice/3/MIGRATED.
> > Well, I am not sure if it really migrates the options.
> 
> Hmm, It did not really migrate the options :-(
> 
> I hacked MigrationImpl::copyConfig to use user/registrymodifications.xcu
> instead of the single .xcu files. It did not help. It must be more
> complicated.

I see that the user/registrymodifications.xcu is in another format:

--- cut user/registrymodifications.xcu ---
<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">
  <item oor:path="/org.openoffice.Office.Common/Internal">
    <prop oor:name="CurrentTempURL" oor:op="fuse">
      <value/>
    </prop>
  </item>
  <item oor:path="/org.openoffice.Office.Common/Misc">
    <prop oor:name="FirstRun" oor:op="fuse">
      <value>false</value>
    </prop>
  </item>
--- cut user/registrymodifications.xcu ---

in compare with the old .xcu files:

--- cut user/registry/data/org/openoffice/Setup.xcu ---
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Setup"
oor:package="org.openoffice">
 <node oor:name="L10N">
  <prop oor:name="ooLocale" oor:type="xs:string">
   <value>en-US</value>
  </prop>
 </node>
 <node oor:name="Office">
  <prop oor:name="LastCompatibilityCheckID" oor:type="xs:string">
   <value>320m18(Build:9502)</value>
  </prop>
--- cut user/registry/data/org/openoffice/Setup.xcu ---


> Does anyone has a better knowledge of this pice of code?

This question is still valid :-)

Best Regards,
Petr



More information about the LibreOffice mailing list