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

Friedrich W. H. Kossebau kossebau at kde.org
Fri Dec 16 23:17:22 UTC 2016


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.

Cheers
Friedrich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addAppStreamId.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-www/attachments/20161217/ccc153db/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addInstallViaAppStream.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-www/attachments/20161217/ccc153db/attachment-0001.bin>


More information about the kde-www mailing list