[AppStream] Why are kudos not defined in the spec
Matthias Clasen
matthias.clasen at gmail.com
Thu Dec 8 00:56:19 UTC 2016
On Wed, Dec 7, 2016 at 2:15 PM, Richard Hughes <hughsient at gmail.com> wrote:
> 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;
>
Seeing this enum still doesn't tell me what strings I can put in the
xml...this seems entirely unsatisfying
More information about the AppStream
mailing list