Skip to content

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

Description

@tsdh

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")))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions