nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Best way to shutdown Nyxt when run from REPL?

Open hendursaga opened this issue 1 year ago • 4 comments

So far, whenever I set *run-from-repl-p* to t, and I wanted to shutdown Nyxt, I've had to killall -9 nyxt, but I was wondering if there was a better way to do this, and if it could be documented somewhere, assuming I still have a connected REPL?

Looking at https://github.com/atlas-engineer/nyxt/blob/7e8c1d4fc99e4ab3f46b71c6cd243af37d304311/source/start.lisp#L581 perhaps I should do (uiop:quit)?

hendursaga avatar Sep 06 '22 17:09 hendursaga

You can set *run-from-repl-p* back to nil and exit normally. Well, that feels like the best course of action for your case of binary Nyxt with a connected REPL (if I understood your situation correctly).

aartaka avatar Sep 06 '22 17:09 aartaka

Hmmm, perhaps adding a toggle-run-from-repl command might be a good idea, even if not for my particular case?

hendursaga avatar Sep 06 '22 18:09 hendursaga

Well, *run-from-repl-p* (much like *interactive-p* and *headless-p*) is an internal details that ideally shouldn't leak into the interface and commands...

aartaka avatar Sep 06 '22 19:09 aartaka

Alternatively we could add a parameter to nyxt:quit.

Ambrevar avatar Sep 07 '22 05:09 Ambrevar