[Libreoffice] XDG config migration

Petr Mladek pmladek at suse.cz
Tue Dec 6 12:08:09 PST 2011


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.

=> we should apply this patch after we update the version of the config
directory or after we change another name.

Well, we might need something similar to fix problem with the set
$XDG_CONFIG_HOME

It is too late for me to continue now.

Good night,
Petr


More information about the LibreOffice mailing list