[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/tmr d6d5e4d22d 05/14: Warn if dbus is unavailable
From: |
ELPA Syncer |
Subject: |
[elpa] externals/tmr d6d5e4d22d 05/14: Warn if dbus is unavailable |
Date: |
Mon, 27 Jun 2022 12:58:04 -0400 (EDT) |
branch: externals/tmr
commit d6d5e4d22da9f6f52b6a868bb6e7aea65ac6b46f
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Warn if dbus is unavailable
---
tmr-notification.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/tmr-notification.el b/tmr-notification.el
index 43dce3a3c7..61a4ff759b 100644
--- a/tmr-notification.el
+++ b/tmr-notification.el
@@ -58,14 +58,16 @@ such notifications."
"Dispatch a notification for TIMER.
Read: (info \"(elisp) Desktop Notifications\") for details."
- (let ((title "TMR May Ring (Emacs tmr package)")
- (body (tmr--long-description-for-completed-timer timer)))
- (notifications-notify
- :title title
- :body body
- :app-name "GNU Emacs"
- :urgency tmr-notification-urgency
- :sound-file tmr-sound-file)))
+ (if (featurep 'dbusbind)
+ (let ((title "TMR May Ring (Emacs tmr package)")
+ (body (tmr--long-description-for-completed-timer timer)))
+ (notifications-notify
+ :title title
+ :body body
+ :app-name "GNU Emacs"
+ :urgency tmr-notification-urgency
+ :sound-file tmr-sound-file))
+ (warn "Emacs has no DBUS support, TMR notifications unavailable")))
(provide 'tmr-notification)
;;; tmr-notification.el ends here
- [elpa] externals/tmr 9f0dee563b 06/14: Move tmr-sound.el back into tmr.el, (continued)
- [elpa] externals/tmr 9f0dee563b 06/14: Move tmr-sound.el back into tmr.el, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr cfd798b066 11/14: Add tmr-reschedule and tmr-edit-description, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr 907756ce8d 14/14: Acknowledge Daniel Mendler for the latest patches, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr 448be30775 09/14: Improve tmr-clone: Only prompt for description if pressing C-u C-u, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr 6f3b096f2c 13/14: Greatly simplify tmr-tabulated, reuse tmr--read-timer, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr 58d30c4896 12/14: Remove single line functions which were used only once, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr 58224191d0 01/14: Rename struct tmr-timer to tmr--timer, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr e18496d187 07/14: Add tmr--update-hook, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr e9c6c8861f 02/14: Get rid of tmr-descriptions-list, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr 9974a28933 04/14: Remove unnecessary declare-function, ELPA Syncer, 2022/06/27
- [elpa] externals/tmr d6d5e4d22d 05/14: Warn if dbus is unavailable,
ELPA Syncer <=
- [elpa] externals/tmr 92d6163dd0 10/14: Remove no-hooks argument, ELPA Syncer, 2022/06/27