fix(org): check WAYLAND_DISPLAY for bin/org-capture

Check WAYLAND_DISPLAY for +org-capture-frame-parameters.
PGTK emacsclient also uses this logic.

Ref: masm11/emacs#13
This commit is contained in:
declantsien 2022-10-28 11:13:32 -06:00 committed by GitHub
parent 714aeb0629
commit b5e9f58db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,9 @@
(transient . t) (transient . t)
,@(when IS-LINUX ,@(when IS-LINUX
`((window-system . ,(if (boundp 'pgtk-initialized) 'pgtk 'x)) `((window-system . ,(if (boundp 'pgtk-initialized) 'pgtk 'x))
(display . ,(or (getenv "DISPLAY") ":0")))) (display . ,(or (getenv "WAYLAND_DISPLAY")
(getenv "DISPLAY")
":0"))))
,(if IS-MAC '(menu-bar-lines . 1))) ,(if IS-MAC '(menu-bar-lines . 1)))
"TODO") "TODO")