From 523a253bce1a463edbb0fca2ddb76bb1ff69eef8 Mon Sep 17 00:00:00 2001 From: luhuaei Date: Mon, 19 Oct 2020 21:03:26 +0800 Subject: [PATCH] Force use xcb backend at wayland desktop session Add QT_QPA_PLATFORM arg for eaf python process. --- eaf.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eaf.el b/eaf.el index f8430e8..0cac7c5 100644 --- a/eaf.el +++ b/eaf.el @@ -985,7 +985,9 @@ Return t or nil based on the result of the call." (list eaf-proxy-host eaf-proxy-port eaf-proxy-type eaf-config-location) (list (eaf-serialization-var-list)) )) - (gdb-args (list "-batch" "-ex" "run" "-ex" "bt" "--args" eaf-python-command))) + (gdb-args (list "-batch" "-ex" "run" "-ex" "bt" "--args" eaf-python-command)) + (process-environment (cl-copy-list process-environment))) + (setenv "QT_QPA_PLATFORM" "xcb") (setq eaf-process (if eaf-enable-debug (apply #'start-process eaf-name eaf-name "gdb" (append gdb-args eaf-args))