Jean-Marc Lasgouttes wrote:
> What would be wrong with setting the execute bit properly? We do
> that for lyx2lyx, don't we?
Nothing is wrong with doing that. If we set the executable bit, then
the code in LyX itself requires a trivial change:
// The conversion command.
ostringstream cs;
cs << pconverter_->command << ' ' << latexfile << ' '
<< int(font_scaling_factor_) << ' ' << pconverter_->to;
- string const command = "sh " + LibScriptSearch(STRCONV(cs.str()));
+ string const command = LibScriptSearch(STRCONV(cs.str()));
So the question now becomes, should we use just one script
(lyxpreview2ppm.py) for all users or should we continue to use the
proven lyxpreview2bitmap.sh for non-Windows users?
--
Angus