From 27544d21cbc5313b8bfc2aab4ac81f6f08bc359b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 1 Jun 2020 14:46:13 -0400 Subject: [PATCH] =?UTF-8?q?bin/org-capture:=20fix=20'Display=20:0=20can?= =?UTF-8?q?=E2=80=99t=20be=20opened'=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/lang/org/autoload/org-capture.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/autoload/org-capture.el b/modules/lang/org/autoload/org-capture.el index d4be3f097..7b273c231 100644 --- a/modules/lang/org/autoload/org-capture.el +++ b/modules/lang/org/autoload/org-capture.el @@ -15,7 +15,8 @@ (width . 70) (height . 25) (transient . t) - ,(if IS-LINUX '(display . ":0")) + ,(when (and IS-LINUX (not (getenv "DISPLAY"))) + `(display . ":0")) ,(if IS-MAC '(menu-bar-lines . 1))) "TODO")