]> git.lyx.org Git - features.git/commitdiff
Enable TeXFiles.sh to run when its path contains spaces.
authorAngus Leeming <leeming@lyx.org>
Wed, 7 Sep 2005 09:01:15 +0000 (09:01 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 7 Sep 2005 09:01:15 +0000 (09:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10417 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/ChangeLog
src/frontends/controllers/tex_helpers.C

index ba7d29459d4f900b85df14119c77a6a510178cab..6ec762e4b0c8bf262c3dba8822aeacff2b84a0fb 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-10  Angus Leeming  <leeming@lyx.org>
+
+       * tex_helpers.C (rescanTexStyles): Quote the path to TeXFiles.sh
+       to avoid problems with "paths with spaces".
+
 2005-08-07  Angus Leeming  <leeming@lyx.org>
 
        * ControlExternal.C (origin_gui_str): ensure that the strings
index 90e9635c846dfbbccc946be15c2c74e3858d99db..e2aa2d5bb933f59f38787df72e3612522ae3de71 100644 (file)
@@ -37,6 +37,7 @@ using support::LibFileSearch;
 using support::OnlyFilename;
 using support::package;
 using support::Path;
+using support::QuoteName;
 using support::split;
 using support::Systemcall;
 using support::token;
@@ -51,7 +52,8 @@ void rescanTexStyles()
        Path p(package().user_support());
        Systemcall one;
        one.startscript(Systemcall::Wait,
-                       "sh " + LibFileSearch("scripts", "TeXFiles.sh"));
+                       "sh " +
+                       QuoteName(LibFileSearch("scripts", "TeXFiles.sh")));
 }