Batch convert LyX files that require `needauth` action

Scott Kostyshak skostysh at lyx.org
Sat Oct 1 13:26:07 UTC 2022


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 --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20221001/f036dfb4/attachment.asc>


More information about the lyx-users mailing list