Re: [Libreoffice] LibreOffice config migration
On Fri, 2010-10-15 at 19:23 +0200, André Schnabel wrote: Am 15.10.2010 17:21, schrieb Michael Meeks: So - here is my suggestion ;-) hopefully it annoys everybody, and it is two-fold. .. (no question on 1. - harden the code for migration) ... 2. we continue to do automatic config migration since this is a commonly desired use-case *but* as we migrate the settings the first time, we write into the (original - ie. the old version)'s directory a stamp file that says these have been imported *and* if the same version is run again with the new settings directory removed (ie. someting went wrong); we prompt the user on the second time: do you want to (re-)import settings from ABC install Sounds like a reasonable compromise to me. Mechtilde? Ok - so, I just pushed this to master, and will cherry-pick to 3.3 in a bit; I didn't add the prompting piece - so, we essentially do a one-shot migration from the old settings; and if people want to re-do that they need to remove the 'MIGRATED' file from their old settings directory (hopefully that is somewhat possible). For post 3.3 - hopefully, we can have the dialog pop up - and it would also be nice to have some graphical warning that we are about to restart having done a settings migration, instead of the silent exit we have now. I can't make myself use the non-layout dialog code though ;-) so - must review Ricardo's new layout work next. HTH, Michael. -- michael.me...@novell.com , Pseudo Engineer, itinerant idiot ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
Michael Meeks wrote: Speaking of which - I notice that neither us, nor up-stream register the migrationoo3.uno.so - so the migrate from 3.x code is never executed :-) we only migrate from 2.x - any ideas why that is ? (Thorsten?). I will push a fix to enable that in scp2 over the weekend - scream if that will bite ;-) [ it works for me ]. Hi Michael, makes sense to enable that - migrates extensions over from any found 3.x-ish user config dir - presumably used on some upgrade-to- commercial offerings at OOo... ...so to test, install a few non-standard extensions in OOo, and see if those are migrated over. Cheers, -- Thorsten pgpdSUxLm3QlU.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
Hi, Am 14.10.2010 07:51, schrieb Mechtilde: please don't take any user information from older version without any agreemaent of the user I second this. If you do so you haven't the possibilityy to start *office with a new user directory e.g in case you destroy something yourself. Correct. Config migration is not sometimes not very reliable and you may end up with a broken config. Best way to get around this is to remove config dir. But normally the people who give support only know about the *current* config dir - so if there are some legacy directories, these will not be removed and break the config at the next start. André ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
Hello please don't take any user information from older version without any agreemaent of the user If you do so you haven't the possibilityy to start *office with a new user directory e.g in case you destroy something yourself. If you don't want a dialog then create a user directory with the defaut setting as you do it on a mschine where this *office is installed the first time Kind regards Mechtilde Am 13.10.2010 22:58, schrieb Noel Power: On Tue, 2010-10-12 at 15:07 +0100, Michael Meeks wrote: Would it be possible to add a non-modal / floating / dialog to prompt users to migrate / import their macros from an old version if it hasn't been previously imported, and we know that they have really been editing / changing their macros ? a reasonably rare case I suspect. I don't exactly get what you mean, the migration purely takes place first time libreoffice is run ( e.g. your config profile doesn't exist and you have no macros ) so I dont understand the 'previously imported' bit Later on if you want to suck in macros from somewhere else I guess that's a different story, there already exists some ( poor ) import capability from the IDE ( we could definitely improve that if necessary ) Anyway I pushed the change to Setup.xcu to add Openoffice.org 3.x as a supported versio to migrate data from. If there are any objections let me know and of course I can back that out Noel -- Dipl. Ing. Mechtilde Stehmann ## http://de.openoffice.org ## Ansprechpartnerin für die deutschsprachige QA ## Freie Office-Suite für Linux, Mac, Windows, Solaris ## Meine Seite http://www.mechtilde.de ## PGP encryption welcome! Key-ID: 0x53B3892B signature.asc Description: OpenPGP digital signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
Mechtilde wrote: please don't take any user information from older version without any agreemaent of the user If you do so you haven't the possibilityy to start *office with a new user directory e.g in case you destroy something yourself. If you don't want a dialog then create a user directory with the defaut setting as you do it on a mschine where this *office is installed the first time Hi Mechtilde, all, well, this is surely not an easy decision to make - but there's definitely a way to have LibO use a clean user dir, if you need it: -env:UserInstallation=file:///path/to/config So if we can agree that migrating user configuration is a sensible thing for the majority of the users, we should default to that - and fix all bugs that make this experience a bad one (including a prune of the 2.x migration from known-bad things - I need your help here, Mechtilde, you have a fancy ooo2 dir, with stuff I don't have). Having less options, and not hiding a sensible feature like config migration away in a menu, is generally a good thing, I guess. Cheers, -- Thorsten pgppU2D5U27sZ.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
André Schnabel wrote: well, this is surely not an easy decision to make - but there's definitely a way to have LibO use a clean user dir, if you need it: -env:UserInstallation=file:///path/to/config and this will prevent, that LibO will migrate any old userconfig when this path is used the first time? Heh, good point - you're, as always, right. :) So we indeed need a way to prevent LibO from doing migration on first start - just pushed a fix for that: export SAL_DISABLE_USERMIGRATION=1; soffice ... gives you a virgin user installation (subsequent runs will not require that env var, as the migration is flagged as done). Having a migration wizard, that also permits selecting the actual source config, and/or selecting only subsets of the config, would be cool indeed, but I think that's something orthogonal to this question. Cheers, -- Thorsten pgpnR7oEEqgx4.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
On Tue, 2010-10-12 at 15:07 +0100, Michael Meeks wrote: Would it be possible to add a non-modal / floating / dialog to prompt users to migrate / import their macros from an old version if it hasn't been previously imported, and we know that they have really been editing / changing their macros ? a reasonably rare case I suspect. I don't exactly get what you mean, the migration purely takes place first time libreoffice is run ( e.g. your config profile doesn't exist and you have no macros ) so I dont understand the 'previously imported' bit Later on if you want to suck in macros from somewhere else I guess that's a different story, there already exists some ( poor ) import capability from the IDE ( we could definitely improve that if necessary ) Anyway I pushed the change to Setup.xcu to add Openoffice.org 3.x as a supported versio to migrate data from. If there are any objections let me know and of course I can back that out Noel ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
Hi Thorsten On Tue, 2010-10-12 at 03:40 +0200, Thorsten Behrens wrote: Hi, Mechtilde thankfully reported a problem with old OOo 2.x user installations, which get migrated over to LibreOffice automatically - problem is, the OOo code we inherit here has several bugs. Aha, coincidentally I was looking at something similar ( and found myself looking at the same file ) since there was some message on the list ( that I responded to ) regarding LibreOffice and the fact that the persons macros from OOo were not migrated. I was about to add an Openoffice3 supported version but I see your comments that you are removing 'Basic' anyway from the MigrationSteps, did I get that right? if so why? I think we want users to be able to migrate their macros right :-) thanks, Noel ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] LibreOffice config migration
Noel Power wrote: Mechtilde thankfully reported a problem with old OOo 2.x user installations, which get migrated over to LibreOffice automatically - problem is, the OOo code we inherit here has several bugs. Aha, coincidentally I was looking at something similar ( and found myself looking at the same file ) since there was some message on the list ( that I responded to ) regarding LibreOffice and the fact that the persons macros from OOo were not migrated. I was about to add an Openoffice3 supported version but I see your comments that you are removing 'Basic' anyway from the MigrationSteps, did I get that right? if so why? I think we want users to be able to migrate their macros right :-) Oh sure - just that it reportedly didn't work anyway for 2.x (and has not, for a while, in OOo). Let's try what the story is for 3.x. Cheers, -- Thorsten pgpllMKKFLksw.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] LibreOffice config migration
Hi, Mechtilde thankfully reported a problem with old OOo 2.x user installations, which get migrated over to LibreOffice automatically - problem is, the OOo code we inherit here has several bugs. So we talked a bit on IRC tonight, and we somehow figured it would be a good idea to keep migrating basic things like UserProfile, Passwords etc. Did not do extensive experiments on this (mostly because I lack elaborate OOo 2.x profile dirs), but the easiest way to handle that is purely by editing xml configuration files - namely, the Migration section in data/org/openoffice/Setup.xcu (below officecfg/registry in the source tree, and share/extensions/report-builder/registry/ for a LibreOffice install). Hopefully, removing the sections Datasources and Basic from the MigrationSteps list already fixes your problems, Mechtilde. Cheers, -- Thorsten pgpF1fMhmjB7D.pgp Description: PGP signature ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice