Enable TeXFiles.sh to run when its path contains spaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10417 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2005-09-07 09:01:15 +00:00
parent 4110aa3b1e
commit e2a6073643
2 changed files with 8 additions and 1 deletions

View 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> 2005-08-07 Angus Leeming <leeming@lyx.org>
* ControlExternal.C (origin_gui_str): ensure that the strings * ControlExternal.C (origin_gui_str): ensure that the strings

View File

@ -37,6 +37,7 @@ using support::LibFileSearch;
using support::OnlyFilename; using support::OnlyFilename;
using support::package; using support::package;
using support::Path; using support::Path;
using support::QuoteName;
using support::split; using support::split;
using support::Systemcall; using support::Systemcall;
using support::token; using support::token;
@ -51,7 +52,8 @@ void rescanTexStyles()
Path p(package().user_support()); Path p(package().user_support());
Systemcall one; Systemcall one;
one.startscript(Systemcall::Wait, one.startscript(Systemcall::Wait,
"sh " + LibFileSearch("scripts", "TeXFiles.sh")); "sh " +
QuoteName(LibFileSearch("scripts", "TeXFiles.sh")));
} }