Uwe Stöhr wrote: > Georg Baum schrieb: > >>> So why does LyX not use this setting? >> >> That is by design. If you want to customize settings, use the preferences >> file. configure.py is not meant to be modified. If the OS provides a >> default viewer for a format then that is used instead of the one detected >> by configure.py. > > But this makes it impossible for the installer to detect installed > applications! Two examples:
That is intentional. We discussed that in all details, please read the archives. > - After installing LyX I'm not able to view PDF's because there is no > default viewer for PDF although GSview is installed. Then that is a problem with the Gsview installation. From a LyX point of view everything that comes from the OS is correct and is to be preferred over the guesswork done in configure.py. If there is no PDF viewer associated with the OS then this means that the user does not want one. > - The default image editor is always MS Paint, no matter if you have > installed the Gimp or Photoshop. And with Paint you can't really edit > images. Again: Problem of your installation. If you have specific reasons to have Paint as image editor but prefer gimp for LyX, use the preferences. If you want gimp as image editor globally, set it in the registry. > That's why I spend so much time to detect installed programs while the > installation and this requires to accept the found programs. > I mean why do we then create a lyxrc.defaults file and check for > programs if LyX don't use it? It does use it, it does only discard the viewers and editors if the OS provides these. The part of configure.py that detects viewers and editors should go in the long term. This was always a workaround. These things on the unix side are being standardized, too, so that we can use e.g. xdgutils to open a file with the system viewer. > To fix the wrong executables names in configure.py I thaught I could > send a patched version. But if LyX don't accept it, I have to wait until > LyX 1.4.3 to have this fixed, is that correct? No, that is not correct. Even LyX 1.4.3 would not use the changed names (unless we decide to change the behaviour, but I don't think that that will happen). What you should do is to educate your users to set the correct system settings. Filing bug reports for the broken installers of other software would probably be a good idea, too. > Editing the preferences file doesn't fix the problem, as it is only > valid for the current user. I could write a hack to have the same > preferences file for all users. Please don't do that, that will cause lots of trouble. BTW, since 1.4.2 LyX reads the file lyxrc.dist. That file is intended to be created by installers if necessary, but it would not solve this particular problem, since the editor and viewer settings are discardded in that file, too. It might nevertheless be useful for other setttings. BTW2, I hope that you don't develop your own installer for 1.4.2. Please coordiate with Joost, two installers would be wasted work and add confusion. Georg