Do not try to use dbus when showing notifications under windows

This commit is contained in:
Daniel Borchmann 2020-06-08 12:51:10 +02:00
parent 4dac319ff7
commit a6776f1fe4
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -916,7 +916,8 @@ With given ARG, display files in `db/important-document-path."
(use-package org-clock
:defer t
:commands (org-clock-save)
:init (setq org-clock-history-length 23
:init (progn
(setq org-clock-history-length 23
org-clock-in-resume t
org-clock-into-drawer t
org-clock-idle-time nil
@ -939,6 +940,12 @@ With given ARG, display files in `db/important-document-path."
org-clock-persist t
org-clock-persist-query-resume nil
org-time-stamp-rounding-minutes '(1 1))
;; On Windows, we don't have dbus to show notifications; default to
;; `message' instead
(when on-windows
(setq org-show-notification-handler #'message)))
:config (progn
(org-clock-persistence-insinuate)