guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: emacs-exwm: Fix DISPLAY environment variable issue.


From: Arun Isaac
Subject: 01/01: gnu: emacs-exwm: Fix DISPLAY environment variable issue.
Date: Sat, 27 May 2017 06:13:43 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit dc443f5149595257780d197fcfdf07585f2e9ed2
Author: Arun Isaac <address@hidden>
Date:   Sat May 27 15:20:12 2017 +0530

    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 a85177d..13eba96 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -4587,9 +4587,12 @@ It should enable you to implement low-level X11 
applications.")
                      address@hidden@
                      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 \"address@hidden" --eval 
'~s' ~%"
                            (string-append (assoc-ref inputs "bash") "/bin/sh")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]