On 9 Jul 2001, Jean-Marc Lasgouttes wrote:

> >>>>> "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes:
>
> Dekel> I'm not sure that this is a good idea when the -userdir flag is
> Dekel> used. What if I just misspelled the userdir name ?
>
> Well, people using -userdir are supposed to know what they are doing
> :) And all you have to do is "rm -r" the directory.
>
> The reason why I want to remove the popup is also that it is buggy:
> with some window manager, it is not possible to have a modal dialog
> without a main window, and the buttons cannot be clicked on.
>
> JMarc
>

When you misspell the -userdir parameter, the concern is that you'll get
the wrong configuration, and take a while to notice it. Removing the
directory is just an annoyance.

I think we need to silently create the directory, except in the case of an
explicit_userdir (change the logic in lyx_main.C so only a -userdir flag
counts as explicit, not the environment variable). In the case the
user asked for a nonexistent directory, we can help him and make sure
everything is OK.

This is also a time to start thinking about marking .lyx directories for
the LyX version: if you install a new version, then using the old .lyx
directory may be unpredictable; some lyxrc switches may have been
deprecated or replaced, the layouts may have been updated etc. This is
beyond what 'reconfigure' does. For example, with the new converter code
a "latex_command" switch of 1.1.5 should be changed to a converter change
in 1.1.6. I do this manually whenever I update versions (always creating a
fresh .lyx directory), but an automatic script would be nice.


Lior

Reply via email to