Batch convert LyX files that require `needauth` action
Steven Paulson
paulsonstevens at gmail.com
Sat Oct 1 20:48:19 UTC 2022
Hi Scott,
Genius workaround! Following your suggestion, I created a different user
directory where I added an additional line `\use_converter_needauth false`
to the preference file. Running `lyx` with the `-userdir` argument pointing
toward the new user directory perfectly solved the problem. Thank you so
much. I really appreciate your help.
Best regards,
Yuwen
On Sat, Oct 1, 2022 at 9:26 AM Scott Kostyshak <skostysh at lyx.org> wrote:
> On Sat, Oct 01, 2022 at 08:39:05AM -0400, Steven Paulson wrote:
> > Dear LyX users,
> >
> > I have LyX files (that require `knitr` converter) synced over GitHub
> across
> > multiple computers. It is tedious sometimes when I pull the files to a
> new
> > machine and convert all of them to PDF, because I have to open every
> single
> > one of them in LyX and grant their permission to always run before I can
> > batch convert them with a makefile. I know it is possible to get around
> > this hassle by unchecking the `Use needauth option` box for the converter
> > in the preference, but I feel it is not the optimal solution for me
> because
> > I do want a warning of security for LyX documents I am not familiar
> with. I
> > am wondering if there is a command line option (I am thinking of
> something
> > along the lines of `--assume-yes`) that I can pass to `lyx` to grant
> > permission for the converter to run LyX documents I am familiar with.
> That
> > way I do not need to uncheck the `needauth` option globally. If you have
> > any idea how to do this or if you have other solutions, please let me
> know.
> >
> > Thank you,
> > Yuwen
>
> Hi Yuwen, I've come across this as well and have the same goal as you
> (to not disable globally but to allow controling on the command line).
>
> The current approach I use is that I created a command 'lyx-noauth',
> that uses the '-usedir' argument that points to a user directory where I
> did uncheck the "Use needauth option" box.
>
> I use 'lyx -e blah.lyx' when I don't want needauth disabled, and
> 'lyx-noauth -e blah.lyx' when I do want to disable need auth on the
> command line.
>
> Do you think that will work with your workflow?
>
> Scott
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20221001/3be5ae3d/attachment-0001.html>
More information about the lyx-users
mailing list