Discussion:
[PATCH] desktop entry spec: Add "UsesNotifications" key
Bastien Nocera
2015-02-04 10:23:52 UTC
Permalink
---
desktop-entry/desktop-entry-spec.xml | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/desktop-entry/desktop-entry-spec.xml b/desktop-entry/desktop-entry-spec.xml
index 36997c0..aef43e0 100644
--- a/desktop-entry/desktop-entry-spec.xml
+++ b/desktop-entry/desktop-entry-spec.xml
@@ -567,6 +567,16 @@
<entry>boolean</entry>
<entry>NO</entry>
<entry>1</entry>
+ </row>
+ <row>
+ <entry id="key-uses-notification"><varname>UsesNotifications</varname></entry>
+ <entry>
+ Whether the program makes use of desktop notifications. This is used to pre-populate
+ notification configuration interfaces.
+ </entry>
+ <entry>boolean</entry>
+ <entry>NO</entry>
+ <entry>1</entry>
</row>
<row>
<entry id="key-actions"><varname>Actions</varname></entry>
--
2.1.0
Ryan Lortie
2015-02-04 10:39:39 UTC
Permalink
hi Bastien,
Post by Bastien Nocera
+ Whether the program makes use of desktop notifications. This
is used to pre-populate
+ notification configuration interfaces.
I don't agree with this patch.

If you want to do this, please invent an interface name and use
Implements=. It was invented precisely for this sort of thing. That
way you can even use g_desktop_app_info_get_implementations() to list
off all the apps in question.

Cheers
Bastien Nocera
2015-02-04 10:40:18 UTC
Permalink
Post by Ryan Lortie
hi Bastien,
Post by Bastien Nocera
+ Whether the program makes use of desktop notifications. This
is used to pre-populate
+ notification configuration interfaces.
I don't agree with this patch.
If you want to do this, please invent an interface name and use
Implements=. It was invented precisely for this sort of thing. That
way you can even use g_desktop_app_info_get_implementations() to list
off all the apps in question.
Sure, org.freedesktop.Notifications then?
Ryan Lortie
2015-02-04 11:16:56 UTC
Permalink
hi,
Post by Bastien Nocera
Sure, org.freedesktop.Notifications then?
I don't really have very much opinion on the various notification specs,
so I can't really say anything except this: I wouldn't crash on their
namespace without asking them first.

Cheers
Ryan Lortie
2015-02-04 11:21:36 UTC
Permalink
Post by Ryan Lortie
hi,
Post by Bastien Nocera
Sure, org.freedesktop.Notifications then?
I don't really have very much opinion on the various notification specs,
so I can't really say anything except this: I wouldn't crash on their
namespace without asking them first.
One more point: the choice of name seems odd. The (completely optional)
official recommendation in the spec is "the interface name should
correspond to a D-Bus interface that the application exports...". This
is an optional recommendation, and there is no need to actually export
that interface, but the fact that this interface exists elsewhere (on
the server side) suggests to me that it might be a particularly poor
choice of name.

org.freedesktop.Notifications.Sender or something?

But ya -- above all else, ask the notifications guys.

Cheers
Bastien Nocera
2015-02-04 11:21:08 UTC
Permalink
Post by Ryan Lortie
hi,
Post by Bastien Nocera
Sure, org.freedesktop.Notifications then?
I don't really have very much opinion on the various notification specs,
so I can't really say anything except this: I wouldn't crash on their
namespace without asking them first.
Huh? Are we talking about the same spec[1] that already exists and you
implemented, and that we're discussing on ***@lists.freedesktop.org?

[1]: https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html
Ryan Lortie
2015-02-04 11:39:53 UTC
Permalink
hi,
Post by Bastien Nocera
Huh? Are we talking about the same spec[1] that already exists and you
https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html
Yes and no. The linked spec is not the one that I that I had any
involvement in at all.

The one that we created recently is not (yet) a freedesktop spec. It
uses org.gtk.Notifications.

org.freedesktop.Notifications is
https://developer.gnome.org/notification-spec/ (for which the canonical
version is apparently in Jon's homedir -- the one you link above). I've
never had any involvement at all with this spec.

GNotification will use one or the other, depending on what is
implemented by the system.

Cheers
Bastien Nocera
2015-02-04 14:16:37 UTC
Permalink
Post by Ryan Lortie
hi,
Post by Bastien Nocera
Huh? Are we talking about the same spec[1] that already exists and you
https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html
Yes and no. The linked spec is not the one that I that I had any
involvement in at all.
The one that we created recently is not (yet) a freedesktop spec. It
uses org.gtk.Notifications.
org.freedesktop.Notifications is
https://developer.gnome.org/notification-spec/ (for which the canonical
version is apparently in Jon's homedir -- the one you link above). I've
never had any involvement at all with this spec.
GNotification will use one or the other, depending on what is
implemented by the system.
Right, I've asked for the source of Jon's version, there are a few more
things we want to add to this (badges being one of them).

Cheers
Bastien Nocera
2015-02-16 16:57:17 UTC
Permalink
Post by Ryan Lortie
hi,
Post by Bastien Nocera
Huh? Are we talking about the same spec[1] that already exists and you
https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html
Yes and no. The linked spec is not the one that I that I had any
involvement in at all.
The one that we created recently is not (yet) a freedesktop spec. It
uses org.gtk.Notifications.
org.freedesktop.Notifications is
https://developer.gnome.org/notification-spec/ (for which the canonical
version is apparently in Jon's homedir -- the one you link above). I've
never had any involvement at all with this spec.
The canonical version is in libnotify's git tree:
https://git.gnome.org/browse/libnotify/tree/docs/notification-spec.xml
Post by Ryan Lortie
GNotification will use one or the other, depending on what is
implemented by the system.
Sanel Zukan
2015-02-17 09:13:33 UTC
Permalink
Hi,
Post by Ryan Lortie
org.freedesktop.Notifications is
https://developer.gnome.org/notification-spec/ (for which the canonical
version is apparently in Jon's homedir -- the one you link above). I've
never had any involvement at all with this spec.
I'm curious, why this spec isn't hosted and listed at
http://www.freedesktop.org/wiki/Specifications?

Best.
Bastien Nocera
2015-02-17 09:55:59 UTC
Permalink
Post by Sanel Zukan
Hi,
Post by Ryan Lortie
org.freedesktop.Notifications is
https://developer.gnome.org/notification-spec/ (for which the canonical
version is apparently in Jon's homedir -- the one you link above). I've
never had any involvement at all with this spec.
I'm curious, why this spec isn't hosted and listed at
http://www.freedesktop.org/wiki/Specifications?
Because fd.o admin isn't responsive enough when there are problems.
Which happens often with the specs. And because it was always hosted
within libnotify.

Loading...