On Sat, Apr 21, 2018 at 02:43:10PM +0000, Dr Eberhard Lisse wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Scott,
> 
> I didn't exit LyX.
> 
> After exiting, it did work. Thanks.
> 
> However I still think that it should not be necessary to exit.

I see. In 2.3.1, this will be a little better thanks to this fix:

  https://www.lyx.org/trac/ticket/10712

As of 2.3.1, the sessions file (which has info on needauth) is saved
whenever you save the document. I think what you want is for the session
file to be saved immediately after you answer the question in the GUI
dialog. The attached patch implements this. I will post the patch on
#10712 and ask for feedback.

> Where is this recorded on the Mac?

In the "session" file in your user directory.

By the way, would you mind bottom-posting on the list, as according to
the list netiquette? [1]

Best,

Scott


[1]
https://wiki.lyx.org/FAQ/ListNetiquette#replying
From 525a13b75412f969f3de71d29e207ff9d51c2eb1 Mon Sep 17 00:00:00 2001
From: Scott Kostyshak <skost...@lyx.org>
Date: Sat, 21 Apr 2018 11:24:34 -0400
Subject: [PATCH] Save session file after needauth dialog

This allows for the user to export the document on the CL without
having to exit LyX or save the buffer.

See #10712 and the ML thread here:

https://www.mail-archive.com/search?l=mid&q=20180420190110.pwslzboep5rnfmxd%40Opti1604
---
 src/Converter.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Converter.cpp b/src/Converter.cpp
index a157c22..4b7f06d 100644
--- a/src/Converter.cpp
+++ b/src/Converter.cpp
@@ -385,6 +385,8 @@ bool Converters::checkAuth(Converter const & conv, string const & doc_fname,
 					theSession().shellescapeFiles().insert(doc_fname, true);
 				else
 					theSession().authFiles().insert(doc_fname);
+				// allows for immediate export from CL
+				theSession().writeFile();
 			}
 		} else {
 			choice = 1;
-- 
2.7.4

Attachment: signature.asc
Description: PGP signature

Reply via email to