Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > b2f9b918f77869ef06d628d228e08893 > files > 220

libappstream-devel-0.12.5-1.mga7.armv7hl.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title xmlns:d="http://docbook.org/ns/docbook">2.4. Web Applications</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta xmlns:d="http://docbook.org/ns/docbook" name="generator" content="publican v4.3.2" /><meta xmlns:d="http://docbook.org/ns/docbook" name="package" content="AppStream-AppStream-0.12-en-US-0.0-0" /><link rel="home" href="index.html" title="AppStream" /><link rel="up" href="chap-Metadata.html" title="Chapter 2. Upstream Metadata" /><link rel="prev" href="sect-Metadata-ConsoleApplication.html" title="2.3. Console Applications" /><link rel="next" href="sect-Metadata-Service.html" title="2.5. Services" /></head><body><p id="title"><a class="left" href="http://www.freedesktop.org/wiki/Distributions/AppStream/"><img alt="Product Site" src="Common_Content/images//image_left.png" /></a><a class="right" href="http://www.freedesktop.org/software/appstream/docs/"><img alt="Documentation Site" src="Common_Content/images//image_right.png" /></a></p><ul class="docnav top"><li class="previous"><a accesskey="p" href="sect-Metadata-ConsoleApplication.html"><strong>Prev</strong></a></li><li class="home">AppStream</li><li class="next"><a accesskey="n" href="sect-Metadata-Service.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" lang="en-US"><div class="titlepage"><div><div><h2 class="title"><a id="sect-Metadata-WebApplication">
      ⁠</a>2.4. Web Applications</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-webapp-introduction">
      ⁠</a>2.4.1. Introduction</h3></div></div></div><div class="para">
			A web application is an application running remotely that is accessed via a web browser and built on the web platform.
		</div><div class="para">
			The metadata described in this document is built upon the generic component metadata with fields specific for web-applications (see <a class="xref" href="chap-Metadata.html#sect-Metadata-GenericComponent">Section 2.1, “Generic Component”</a>). All tags valid for a generic component are valid for a <code class="literal">web-application</code> component as well.
		</div><div class="para">
			A web application metainfo file is special in the regard that it is usually not combined with the software it is describing and that it has no installable. It usually is equivalent to a weblink that gets special treatment by software centers. Web application metainfo files are therefore injected directly into the collection metadata generation process, or can be installed as usual into <code class="filename">/usr/share/metainfo/%{id}.metainfo.xml</code>.
		</div><div class="para">
			Software centers may display web applications in special, chrome-less web browser windows to achieve better desktop integration and make the web application feel more native on the desktop.
		</div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-webapp-filespec">
      ⁠</a>2.4.2. File specification</h3></div></div></div><div class="para">
			The basic structure for a generic component as described at <a class="xref" href="chap-Metadata.html#spec-component-filespec">Section 2.1.3, “XML Specification”</a> applies. Note that the XML root must have the <code class="literal">type</code> property set to <code class="code">web-application</code>, while in a generic component this property can be omitted. This clearly identified this metainfo document as describing a web application.
		</div><div class="para">
			The following list describes tags for <code class="literal">web-application</code> metainfo files and provides some additional information about the values the tags are expected to have. If no information is given about a tag, refer to the respective tag in <a class="xref" href="chap-Metadata.html#sect-Metadata-GenericComponent">Section 2.1, “Generic Component”</a>.
		</div><div class="variablelist"><dl class="variablelist"><dt><a id="tag-id-web-app">
      ⁠</a><span class="term">&lt;id/&gt;</span></dt><dd><div class="para">
						For web applications, the <code class="code">&lt;id/&gt;</code> tag value must follow the AppStream ID naming conventions (it should be a reverse-DNS name).
					</div></dd><dt><span class="term">&lt;metadata_license/&gt;</span></dt><dd><div class="para">
						The <code class="code">&lt;metadata_license/&gt;</code> tag as described in <a class="xref" href="chap-Metadata.html#tag-metadata_license">&lt;metadata_license/&gt;</a> must be present.
					</div></dd><dt><span class="term">&lt;name/&gt;</span></dt><dd><div class="para">
						A <code class="literal">name</code> must be present for console applications. See <a class="xref" href="chap-Metadata.html#tag-name">&lt;name/&gt;</a> for a detailed description of this tag.
					</div></dd><dt><span class="term">&lt;summary/&gt;</span></dt><dd><div class="para">
						A <code class="literal">summary</code> must be present for console applications. See <a class="xref" href="chap-Metadata.html#tag-summary">&lt;summary/&gt;</a> for a detailed description of this tag.
					</div></dd><dt><a id="tag-webapp-launchable">
      ⁠</a><span class="term">&lt;launchable/&gt;</span></dt><dd><div class="para">
						This tag is described in detail for generic components at <a class="xref" href="chap-Metadata.html#tag-launchable">&lt;launchable/&gt;</a>.
					</div><div class="para">
						A <code class="literal">launchable</code> tag of type <code class="literal">url</code> must be present for web applications. It is used as the entry point for starting the web application and opened in a browser in case the user wants to "launch" the web application.
					</div></dd><dt><a id="tag-webapp-icon">
      ⁠</a><span class="term">&lt;icon/&gt;</span></dt><dd><div class="para">
						This tag is described in detail for generic components at <a class="xref" href="chap-Metadata.html#tag-icon">&lt;icon/&gt;</a>.
					</div><div class="para">
						A <code class="literal">icon</code> tag must be present for web applications. Authors of the metainfo files might prefer using the <code class="literal">remote</code> icon type, but any icon type is allowed here.
					</div></dd></dl></div><div class="para">
			For a component of type <code class="literal">web-application</code>, the following tags are required and must always be present: <a class="xref" href="sect-Metadata-WebApplication.html#tag-id-web-app">&lt;id/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-metadata_license">&lt;metadata_license/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-name">&lt;name/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-summary">&lt;summary/&gt;</a>, <a class="xref" href="sect-Metadata-WebApplication.html#tag-webapp-launchable">&lt;launchable/&gt;</a>, <a class="xref" href="sect-Metadata-WebApplication.html#tag-webapp-icon">&lt;icon/&gt;</a>, <a class="xref" href="chap-Metadata.html#tag-categories">&lt;categories/&gt;</a>.
		</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="sect-Metadata-ConsoleApplication.html"><strong>Prev</strong>2.3. Console Applications</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="sect-Metadata-Service.html"><strong>Next</strong>2.5. Services</a></li></ul></body></html>