unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* D-Bus and notifications
@ 2018-10-12 10:55 Garreau, Alexandre
  2018-10-12 11:55 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Garreau, Alexandre @ 2018-10-12 10:55 UTC (permalink / raw)
  To: emacs-devel

Hi all,

I wanted to get Gnus warn me of some personal mails by sound and others
with delay, but I noticed the “urgency” flag in freedesktop
notifications spec is not urgency but importance, the “timeout” only is
about displaying, and the “sound-name” is not a conditional hint but an
imperative depending on capabilites, I guess, and the API stays quite
imperative and not that much semantic, so there isn’t much freedom for
notification server…

I wanted to experiment more flexibility, so I’d like to know if dbus.el
can be used not only to have a notif client but also a server, so that
the notifications would go to emacs instead of, say, dunst, that I
wouldn’t use anymore.

In that case, could I experiment some new hints or are the specs
hardcoded in C somewhere, like in dbus?



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: D-Bus and notifications
  2018-10-12 10:55 D-Bus and notifications Garreau, Alexandre
@ 2018-10-12 11:55 ` Michael Albinus
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Albinus @ 2018-10-12 11:55 UTC (permalink / raw)
  To: Garreau, Alexandre; +Cc: emacs-devel

"Garreau, Alexandre" <galex-713@galex-713.eu> writes:

> Hi all,

Hi Alexandre,

> I wanted to get Gnus warn me of some personal mails by sound and others
> with delay, but I noticed the “urgency” flag in freedesktop
> notifications spec is not urgency but importance, the “timeout” only is
> about displaying, and the “sound-name” is not a conditional hint but an
> imperative depending on capabilites, I guess, and the API stays quite
> imperative and not that much semantic, so there isn’t much freedom for
> notification server…
>
> I wanted to experiment more flexibility, so I’d like to know if dbus.el
> can be used not only to have a notif client but also a server, so that
> the notifications would go to emacs instead of, say, dunst, that I
> wouldn’t use anymore.
>
> In that case, could I experiment some new hints or are the specs
> hardcoded in C somewhere, like in dbus?

Read the D-Bus manual of Emacs: (info "(dbus)")

It gives you the full flexibility to design your interface. Chapter
"Offering own methods" is about the server part.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-12 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-12 10:55 D-Bus and notifications Garreau, Alexandre
2018-10-12 11:55 ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).