Geoffrey Lloyd wrote:
> From: "Sreekumar Bhaskaran-Nair {msbad084}"
>> I had msys installed in c:\MSYS\1.0\bin
>> That was the default path for me. But the default path for 
>> lyx was in program files. When I shifted lyx also to c:\lyx;
>> Tex information works perfectly. Thanks Stephen for the tip
 
> But surely if c:\msys\1.0\bin is in the path then it doesn't 
> matter where Lyx is? I am reluctant to move my whole lyx setup.
> Surely there is another way for this to work so I can see Tex
> info and a full list of .bst files. 

It looks like there's a quoting problem somewhere.
  sh C:/Program Files/LyX/Resources/lyx/scripts/TeXFiles.sh
is very different to
  sh "C:/Program Files/LyX/Resources/lyx/scripts/TeXFiles.sh"

... OK, got it. Patch attached. This will eventually make it into the LyX
1.3.7 tree when Jean-Marc returns from holiday. I'll also look to backport
it to LyX/Win 1.3.6 version 2.

-- 
Angus
Index: src/frontends/controllers/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ChangeLog,v
retrieving revision 1.273.2.24
diff -u -p -r1.273.2.24 ChangeLog
--- src/frontends/controllers/ChangeLog	4 Jul 2005 13:24:41 -0000	1.273.2.24
+++ src/frontends/controllers/ChangeLog	10 Aug 2005 08:38:43 -0000
@@ -1,3 +1,8 @@
+2005-08-10  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* tex_helpers.C (rescanTexStyles): Quote the path to TeXFiles.sh
+	to avoid problems with "paths with spaces".
+
 2005-07-04  Jürgen Spitzmüller  <[EMAIL PROTECTED]>
 
 	* ControlToc.[Ch]: new method getGuiName, which is used by the frontends 
Index: src/frontends/controllers/tex_helpers.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/tex_helpers.C,v
retrieving revision 1.7.2.3
diff -u -p -r1.7.2.3 tex_helpers.C
--- src/frontends/controllers/tex_helpers.C	28 Jan 2005 15:12:57 -0000	1.7.2.3
+++ src/frontends/controllers/tex_helpers.C	10 Aug 2005 08:38:43 -0000
@@ -53,7 +53,8 @@ void rescanTexStyles()
 	Path p(lyx::package().user_support());
 	Systemcall one;
 	one.startscript(Systemcall::Wait,
-			"sh " + LibFileSearch("scripts", "TeXFiles.sh"));
+			"sh " +
+			QuoteName(LibFileSearch("scripts", "TeXFiles.sh")));
 }
 
 

Reply via email to