branch: externals/dtache commit 89df9371db66ccc2b85acf646f12cf0413be0030 Author: Niklas Eklund <niklas.ekl...@posteo.net> Commit: Niklas Eklund <niklas.ekl...@posteo.net>
Use timer only on local macOS host --- CHANELOG.org | 2 ++ dtache.el | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANELOG.org b/CHANELOG.org index 28e94a5138..6829cf3f88 100644 --- a/CHANELOG.org +++ b/CHANELOG.org @@ -4,6 +4,8 @@ * Development +- =dtache= now uses =filenotify= for notifications except on local macOS hosts. + * Version 0.3 (2022-01-15) - =dtache= now uses =filenotify= for both local and remote sessions. If run on =macOS= timers are used both for local as well as remote sessions. diff --git a/dtache.el b/dtache.el index 06739b390b..611e0d2e8a 100644 --- a/dtache.el +++ b/dtache.el @@ -1114,11 +1114,10 @@ the current time is used." (defun dtache--start-session-monitor (session) "Start to monitor SESSION activity." (let ((default-directory (dtache--session-working-directory session))) - (if (eq system-type 'darwin) + (if (and (not(file-remote-p default-directory)) + (eq system-type 'darwin)) ;; macOS requires a timer based solution - (if (file-remote-p default-directory) - (dtache--session-timer-monitor session) - (dtache--session-macos-monitor session)) + (dtache--session-macos-monitor session) (dtache--session-filenotify-monitor session)))) ;;;;; UI