]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetgraphics.C
index 647e9c525a480e9e246d2aed72c144b1c02081b2..59b811390ddeb4c4230b658e5d65e5825d741504 100644 (file)
@@ -441,7 +441,7 @@ string const InsetGraphics::prepareFile(Buffer const & buf,
        // from ImageMagic: convert from:inname.from to:outname.to
        if (!converters.convert(&buf, temp_file, outfile_base, from, to)) {
                string const command =
-                       LibFileSearch("scripts", "convertDefault.sh") +
+                       "sh " + LibFileSearch("scripts", "convertDefault.sh") +
                                ' ' + from + ':' + temp_file + ' ' +
                                to + ':' + outfile_base + '.' + to;
                lyxerr[Debug::GRAPHICS]