[AppStream] Why are kudos not defined in the spec
Richard Hughes
hughsient at gmail.com
Wed Dec 7 19:15:04 UTC 2016
On 7 December 2016 at 19:11, Matthias Clasen <matthias.clasen at gmail.com> wrote:
> I was trying to follow your howto for adding appdata to a new
> application, and I couldn't find any definition of allowed values for
> kudos - shouldn't this be in the appstream spec ?
I've forwarded this on to the list; ximion I know you were hesitant to
standardize these but I think we have enough apps doing this in the
wild to standardize some allowed values.
Fwiw, these are the defines I've allowed in appstream-glib, but I'm
open for ideas or additions. Some of the other kudos we show in GNOME
Software we detect at runtime rather than encoded in the AppData
files.
/**
* AsKudoKind:
* @AS_KUDO_KIND_UNKNOWN: Type invalid or not known
* @AS_KUDO_KIND_SEARCH_PROVIDER: Installs a search provider
* @AS_KUDO_KIND_USER_DOCS: Installs user documentation
* @AS_KUDO_KIND_APP_MENU: Uses the GNOME application menu
* @AS_KUDO_KIND_MODERN_TOOLKIT: Uses a modern toolkit like GTK3 or QT5
* @AS_KUDO_KIND_NOTIFICATIONS: Registers notifications with KDE or GNOME
* @AS_KUDO_KIND_HIGH_CONTRAST: Installs a high contrast icon
* @AS_KUDO_KIND_HI_DPI_ICON: Installs a high DPI icon
*
* The kudo type.
**/
typedef enum {
AS_KUDO_KIND_UNKNOWN, /* Since: 0.2.2 */
AS_KUDO_KIND_SEARCH_PROVIDER, /* Since: 0.2.2 */
AS_KUDO_KIND_USER_DOCS, /* Since: 0.2.2 */
AS_KUDO_KIND_APP_MENU, /* Since: 0.2.2 */
AS_KUDO_KIND_MODERN_TOOLKIT, /* Since: 0.2.2 */
AS_KUDO_KIND_NOTIFICATIONS, /* Since: 0.2.2 */
AS_KUDO_KIND_HIGH_CONTRAST, /* Since: 0.3.0 */
AS_KUDO_KIND_HI_DPI_ICON, /* Since: 0.3.1 */
/*< private >*/
AS_KUDO_KIND_LAST
} AsKudoKind;
Richard.
More information about the AppStream
mailing list