From dfcec69c7f9f89cbb34ed3f07cd5362961d80c53 Mon Sep 17 00:00:00 2001
From: Tim Schumacher <tim@datenknoten.me>
Date: Sun, 26 Jan 2020 12:14:26 +0100
Subject: [PATCH] org-clock.el: Check if dbus is available for
 notifications-notify

---
 lisp/org-clock.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 7fb97f021..157d55509 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -813,7 +813,7 @@ use libnotify if available, or fall back on a message."
 	((stringp org-show-notification-handler)
 	 (start-process "emacs-timer-notification" nil
 			org-show-notification-handler notification))
-	((fboundp 'notifications-notify)
+	((and (fboundp 'dbus-compiled-version) (fboundp 'notifications-notify))
 	 (notifications-notify
 	  :title "Org mode message"
 	  :body notification
-- 
2.24.0.windows.1

