aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-11-04 01:25:10 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-03-15 12:20:08 +0100
commitc0b73fa26d0496783edbe613eb4be36eb205cb45 (patch)
tree4ea9235b90554884ed059c872942bb0c05cdf9c6
parent1e5026c278854529f58097ead16c1554013bb408 (diff)
feat: Kill Nyxt process to avoid hangups
-rw-r--r--nyxt.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/nyxt.el b/nyxt.el
index bde881e..992f9e7 100644
--- a/nyxt.el
+++ b/nyxt.el
@@ -202,7 +202,10 @@ Optionally test if SYMBOL is bound."
(defun nyxt-quit ()
"Quit the Nyxt process."
(interactive)
- (nyxt-run '(quit)))
+ (ignore-errors
+ (kill-process nyxt-process))
+ (setq nyxt-process nil)
+ (setq nyxt-slynk-connection nil))
;;;###autoload
(cl-defun nyxt-capture (template &key (roam-p nil))