emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/org a51bb2c448 2/2: org-x11idle-exists-p: Do not demand


From: ELPA Syncer
Subject: [elpa] externals/org a51bb2c448 2/2: org-x11idle-exists-p: Do not demand X window system at load time
Date: Fri, 28 Oct 2022 22:57:51 -0400 (EDT)

branch: externals/org
commit a51bb2c448bab7665667471aa227e3e25dbbdced
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-x11idle-exists-p: Do not demand X window system at load time
    
    * lisp/org-clock.el (org-x11idle-exists-p): Do not check if load-time
    `window-system' is `x'.  Instead, rely on the check in
    `org-user-idle-seconds'.
    
    Emacs may start as a daemon and hence `window-system' may not yet be
    `x' during startup.
    
    Reported-by: Julien Cubizolles <j.cubizolles@free.fr>
    Link: https://orgmode.org/list/871qqs6gqs.fsf@free.fr
---
 lisp/org-clock.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index e98a34f0db..ca026c44fc 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1201,8 +1201,7 @@ If `only-dangling-p' is non-nil, only ask to resolve 
dangling
 
 (defvar org-x11idle-exists-p
   ;; Check that x11idle exists
-  (and (eq window-system 'x)
-       (eq 0 (call-process-shell-command
+  (and (eq 0 (call-process-shell-command
               (format "command -v %s" org-clock-x11idle-program-name)))
        ;; Check that x11idle can retrieve the idle time
        ;; FIXME: Why "..-shell-command" rather than just `call-process'?



reply via email to

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