[Libreoffice] XDG config migration

Petr Mladek pmladek at suse.cz
Tue Dec 6 12:16:31 PST 2011


Petr Mladek píše v Út 06. 12. 2011 v 21:08 +0100:
> Petr Mladek píše v Út 06. 12. 2011 v 19:57 +0100:
> > Tomáš Chvátal píše v Po 05. 12. 2011 v 10:40 +0100:
> > > Hi guys,
> > > 
> > > After updating to 3.5 quite few people reported that their
> > > configuration is gone and they have default setup.
> > > 
> > > The reason for this is that 3.5 now uses XDG spec
> > > ~/.config/libreoffice instead of ~/.libreoffice. Simple copy of later
> > > folder to replace the former one solved the issued for everyone.
> > 
> > IMHO, we should check both prefixes: $XDG_CONFIG_HOME and $HOME in all
> > cases.
> 
> I tried to implement it, see the attached patch. Unfortunately, it does
> not work because it do the migration in the second run and it uses the
> same directory name in $HOME/.config like in used in $HOME => it finds
> the new clean configuration from the first run and migrates it into
> itself.

Maybe, we could use the patch and just ignore the "old" configuration if
it is in the same path like the new one ;-) Then it will solve the
problem with set $XDG_CONFIG_HOME.

As I said, it is too late for me to dig into it now.

Best Regards,
Petr



More information about the LibreOffice mailing list