[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"
  <item oor:path="/org.openoffice.Office.Common/Internal">
    <prop oor:name="CurrentTempURL" oor:op="fuse">
  <item oor:path="/org.openoffice.Office.Common/Misc">
    <prop oor:name="FirstRun" oor:op="fuse">
--- 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"
 <node oor:name="L10N">
  <prop oor:name="ooLocale" oor:type="xs:string">
 <node oor:name="Office">
  <prop oor:name="LastCompatibilityCheckID" oor:type="xs:string">
--- 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,

More information about the LibreOffice mailing list