File: sect-AppStream-IconCache.html

package info (click to toggle)
appstream 0.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,660 kB
  • ctags: 2,618
  • sloc: xml: 10,142; ansic: 8,362; cpp: 1,905; python: 236; sh: 58; makefile: 13
file content (10 lines) | stat: -rw-r--r-- 4,270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
<?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>3.2. Icon Cache</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 name="generator" content="publican 3.2.1" /><meta name="package" content="AppStream-AppStream-0.7-en-US-0.0-0" /><link rel="home" href="index.html" title="AppStream" /><link rel="up" href="chap-DistroData.html" title="Chapter 3. Distribution Metadata and Services" /><link rel="prev" href="chap-DistroData.html" title="Chapter 3. Distribution Metadata and Services" /><link rel="next" href="chap-Quickstart.html" title="Chapter 4. Metadata Quickstart" /></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="chap-DistroData.html"><strong>Prev</strong></a></li><li class="home">AppStream</li><li class="next"><a accesskey="n" href="chap-Quickstart.html"><strong>Next</strong></a></li></ul><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="sect-AppStream-IconCache"></a>3.2. Icon Cache</h2></div></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-iconcache-introduction"></a>3.2.1. Introduction</h3></div></div></div><div class="para">
			In order to display icons in software-centers, distributors should offer a repository of cached icons for applications defined in their AppStream XML files. The icons should be PNG files or vectorgraphics (PNG is preferred) and match the name referenced in the applications .desktop file. Their size should be 64x64px, it is okay to just provide one size.
		</div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="spec-iconcache-location"></a>3.2.2. Filesystem locations</h3></div></div></div><div class="para">
			All icons of type <code class="literal">cached</code> must be placed in <code class="filename">/usr/share/app-info/icons/%{origin}/%{size}/</code> or <code class="filename">/var/cache/app-info/icons/%{origin}/%{size}/</code>, where <code class="literal">origin</code> is the AppStream data origin defined in the AppStream data file (see <a class="xref" href="chap-DistroData.html#spec-asxml-general">Section 3.1.3, “General XML structure”</a>), and <code class="literal">size</code> is <code class="code">64x64</code> or <code class="code">128x128</code> depending on the size of the icon. And icon might be present with different sizes in both directories.
		</div><div class="para">
			For example the cache icon <code class="code">krita.png</code> of a component in a data file with the origin <code class="code">jessie</code> should be stored in <code class="filename">/usr/share/app-info/icons/jessie/64x64/krita.png</code> (or in the <code class="filename">/var/cache</code> location).
		</div><div class="note"><div class="admonition_header"><p><strong>Legacy Support</strong></p></div><div class="admonition"><div class="para">
				In order to support the old icon cache layout, client applications may also look for icons in the folder below the size-directories, assuming that the icons placed there are of size <code class="code">64x64</code> pixels.
			</div></div></div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="chap-DistroData.html"><strong>Prev</strong>Chapter 3. Distribution Metadata and Services</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="chap-Quickstart.html"><strong>Next</strong>Chapter 4. Metadata Quickstart</a></li></ul></body></html>