]> git.lyx.org Git - lyx.git/commit
The shell escape patch
authorEnrico Forestieri <forenr@lyx.org>
Thu, 3 Aug 2017 11:07:41 +0000 (13:07 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 3 Aug 2017 11:07:41 +0000 (13:07 +0200)
commitf11bfe1697492f79f8cc02d4021305005cf539ef
tree7330277b8eaeb88ee5712d8214ab56440bea82b9
parent7e3e3e8a118b9e15ab634fb6567a68213ffe4fcd
The shell escape patch

Allow a LaTeX backend to run external commands after user confirmation.
This is a per document and per machine setting. The authorization has
to be given through the document settings pane, but is not recorded in
the document itself. Moving the document to either another computer or
another directory on the same computer revokes the authorization.
This can also be done by right clicking the red icon that appears in
the status bar when a document is marked as one requiring shell escape.
The patch also checks whether the user has added the -shell-escape
option to a LaTeX converter and nags the user to remove the option
(which would be used for all documents) in favor of the (per document)
support offered by LyX.
14 files changed:
src/Buffer.cpp
src/BufferParams.cpp
src/BufferParams.h
src/Converter.cpp
src/Converter.h
src/Session.cpp
src/Session.h
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiDocument.h
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWorkArea_Private.h
src/frontends/qt4/ui/OutputUi.ui