On 28/10/2022 05:31, Julien Cubizolles wrote:

For me, org-x11idle-exists-p is always nil at startup, but is set to
true if I eval it later on. I guess it's because I'm starting Emacs in
daemon mode, (as a systemd user service actually), and
org-x11idle-exists-p relies on (eq window-system 'x) which is somehow
not set in the terminal when the daemon.

I am not familiar with `org-x11idle-exists-p', but a problem with access of X clipboard from :immediate-finish capture templates may be quite similar. The following command creates a hidden X11 frame if no visible one exists:

emacsclient --eval '(server-select-display (getenv "DISPLAY"))'




Reply via email to