Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification error: (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name org.freedesktop.Notifications was not provided by any .service files") #83

Closed
tsdh opened this issue Jul 29, 2022 · 1 comment

Comments

@tsdh
Copy link
Contributor

tsdh commented Jul 29, 2022

I run ement on a server where I ssh into. On that server, there's no notification daemon installed so whenever ement wants to send a notification via dbus, I get the error from the subject.

I guess it would be better if ement checks for availability of the dbus notification service before sending and producing a distracting error message. A function for doing so would be:

(defun th/dbus-notifications-available-p ()
  (and (featurep 'dbusbind)
       (require 'dbus nil :no-error)
       (dbus-ignore-errors (dbus-get-unique-name :session))
       (dbus-ping :session "org.freedesktop.Notifications")))
@alphapapa
Copy link
Owner

@tsdh Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants