Le 03/06/2026 à 10:47, Pavel Sanda a écrit :
On Tue, May 12, 2026 at 06:15:56PM +0200, Pavel Sanda wrote:
   The fix is straightforward: have the new LFUN_LYX_QUIT path call 
writeSession() (and probably preserve the closing_ / lastOpened().clear() 
semantics) before
   tearing down work areas - e.g. call writeSession() on each view right before 
closeBufferAll(), or move the session-write logic into closeBufferAll() itself.

The fix is not that straightforward and gets uncomfortably long if we want to
preserve bunch of other stuff which we did before at the end of session before
(save ui settings, fullscreen toggle, original order of buffer closings, etc.)

Thanks for looking at that Pavel. I took a shot at a fix a couple weeks ago, but eventually gave up. I have difficulties finding time for LyX coding these days. My latest plan was to revert my commit to go back to Koji's solution, but I did not even find time for that.

The exit code is really awful.


--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to