gnu: emacs-exwm: Fix DISPLAY environment variable issue.
* gnu/packages/emacs.scm (emacs-exwm): Set DISPLAY environment variable in shell wrapper.
This commit is contained in:
parent
ba69e8f7ce
commit
dc443f5149
|
@ -4587,9 +4587,12 @@ It should enable you to implement low-level X11 applications.")
|
||||||
TryExec=~@*~a~@
|
TryExec=~@*~a~@
|
||||||
Type=Application~%" ,name ,synopsis exwm-executable)))
|
Type=Application~%" ,name ,synopsis exwm-executable)))
|
||||||
;; Add a shell wrapper to bin
|
;; 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
|
(with-output-to-file exwm-executable
|
||||||
(lambda _
|
(lambda _
|
||||||
(format #t "#!~a ~@
|
(format #t "#!~a ~@
|
||||||
|
export DISPLAY=:0 ~@
|
||||||
~a +SI:localuser:$USER ~@
|
~a +SI:localuser:$USER ~@
|
||||||
exec ~a --exit-with-session ~a \"$@\" --eval '~s' ~%"
|
exec ~a --exit-with-session ~a \"$@\" --eval '~s' ~%"
|
||||||
(string-append (assoc-ref inputs "bash") "/bin/sh")
|
(string-append (assoc-ref inputs "bash") "/bin/sh")
|
||||||
|
|
Loading…
Reference in New Issue