From dc443f5149595257780d197fcfdf07585f2e9ed2 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 27 May 2017 15:20:12 +0530 Subject: [PATCH] gnu: emacs-exwm: Fix DISPLAY environment variable issue. * gnu/packages/emacs.scm (emacs-exwm): Set DISPLAY environment variable in shell wrapper. --- gnu/packages/emacs.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index a85177d814..13eba9646e 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -4587,9 +4587,12 @@ (define-public emacs-exwm TryExec=~@*~a~@ Type=Application~%" ,name ,synopsis exwm-executable))) ;; Add a shell wrapper to bin + ;; Set DISPLAY variable to work around + ;; https://github.com/ch11ng/exwm/issues/213 (with-output-to-file exwm-executable (lambda _ (format #t "#!~a ~@ + export DISPLAY=:0 ~@ ~a +SI:localuser:$USER ~@ exec ~a --exit-with-session ~a \"$@\" --eval '~s' ~%" (string-append (assoc-ref inputs "bash") "/bin/sh")