Georg Baum wrote:
What is wrong with the $$s solution I proposed?
I don't really understand what you mean. It won't be a script in
lib/scripts but an application in the Windows installer distribution,
just like all the other tools.
Or maybe instead of
the flag one could use a viewer like
"noauto C:\Programs\foo\bar.exe"
which would mean that C:\Programs\foo\bar.exe is the viewer and overrides
the auto setttings.
I now realize that lyxrc.default will still override lyxrc.dist, so it
is not going to help.
What about the new patch I attached, which adds the possibility of
distributing a lyxrc.distviewers file?
Joost
Index: lyx_main.C
===================================================================
--- lyx_main.C (revision 15338)
+++ lyx_main.C (working copy)
@@ -474,6 +474,9 @@
// Query the OS to know what formats are viewed natively
formats.setAutoOpen();
+
+ // This one may have been distributed along with LyX.
+ readRcFile("lyxrc.distviewers");
system_lyxrc = lyxrc;
system_formats = formats;