From 27928f47d0bb53eabec6bbcf9190b80b2bdf3b47 Mon Sep 17 00:00:00 2001 From: David Florness Date: Sat, 12 Jul 2025 12:10:46 -0400 Subject: [PATCH] pass DSIPLAY envvar to kitty process Getting the following error when running emacs-wayland: Process kitty exited abnormally with code 1 [0.044] [glfw error 65544]: X11: The DISPLAY environment variable is missing GLFW initialization failed --- lisp/keys.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/keys.el b/lisp/keys.el index 9c8ea9e..e9f1c43 100644 --- a/lisp/keys.el +++ b/lisp/keys.el @@ -69,10 +69,11 @@ (global-set-key (kbd "C-M-") (lambda () (interactive) - (start-process - "kitty" - "*kitty*" - "/usr/bin/kitty"))) ;TODO: don't use absolute path + (with-environment-variables (("DISPLAY" ":0")) + (start-process + "kitty" + "*kitty*" + "/usr/bin/kitty")))) ;TODO: don't use absolute path ;; I don't always know where my frames are, and I want a way to kill Emacs 100% ;; of the time -- 2.38.4