Add "Install via AppStream" links to applications on kde.org

Albert Astals Cid aacid at kde.org
Sun Dec 18 21:50:23 UTC 2016


El dissabte, 17 de desembre de 2016, a les 0:17:22 CET, Friedrich W. H. 
Kossebau va escriure:
> Hi,
> 
> most of the KDE applications now ship with an appdata file. Each appdata
> file comes with an appstream id, which in a distro-agnostic way
> identifies the respective application.
> 
> "In order to allow installation of AppStream components from websites,
> software-centers implementing AppStream may choose to also support the
> appstream:// urls."
> From
> https://www.freedesktop.org/software/appstream/docs/sect-AppStream-Services
> -UrlHandler.html
> 
> Attached patches enable entries on kde.org/applications to have
> optionally a "Get $App" section in the box on the right side, with an
> item "Install via AppStream" linked to the "appstream:app.id" url.
> 
> This will be controlled by a new property "appstream" added to the app
> json files in applications/apps/. If present and not false, the content
> should be the id, otherwise it is handled as not set.
> 
> Example:
> Adding this to applications/apps/okteta.json
>     "appstream": "org.kde.okteta.desktop",
> will add
> 	<strong>Get Okteta</strong>
> 	<a href="appstream:org.kde.okteta.desktop">Install via AppStream</a>
> at the begin of the box on the right side of
> 	kde.org/applications/utilities/okteta
> 
> If committed, adding all the "appstream" entries to all the json files
> could be a GCI task? Anyone who could overlook this?
> 
> Others might want to extend this in the future to something for Android,
> Windows, etc., unless the kde.org overhaul will bring all this anyway
> once it is done.

Is it possible to detect if the browser has a handler for the appstream: 
scheme and if not don't show the link at all?

Cheers,
  Albert

> 
> Cheers
> Friedrich




More information about the kde-www mailing list