This file is indexed.

/usr/share/gtk-doc/html/libaccounts-glib/service-file-format.html is in libaccounts-glib-doc 1.23+17.04.20161104-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Service description file format: libaccounts-glib Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="libaccounts-glib Reference Manual">
<link rel="up" href="xml-file-formats.html" title="XML files">
<link rel="prev" href="provider-file-format.html" title="Provider description file format">
<link rel="next" href="service-type-file-format.html" title="Service type description file format">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="xml-file-formats.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="provider-file-format.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="service-type-file-format.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="service-file-format"></a>Service description file format</h2></div></div></div>
<p>
Services for libaccounts-glib providers are described with a simple XML file.
An example for a hypothetical <code class="literal">CoolProvider</code> chat service is
shown below:
</p>
<div class="example">
<a name="id-1.4.3.4.3"></a><p class="title"><b>Example 6. Service description for CoolProvider chat service</b></p>
<div class="example-contents">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28</pre></td>
        <td class="listing_code"><pre class="programlisting"><span class="gtkdoc opt">&lt;</span>?xml version<span class="gtkdoc opt">=</span><span class="string">&quot;1.0&quot;</span> encoding<span class="gtkdoc opt">=</span><span class="string">&quot;UTF-8&quot;</span>?<span class="gtkdoc opt">&gt;</span>
<span class="gtkdoc opt">&lt;</span>service id<span class="gtkdoc opt">=</span><span class="string">&quot;coolprovider-chat&quot;</span><span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>type<span class="gtkdoc opt">&gt;</span>IM<span class="gtkdoc opt">&lt;/</span>type<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>name<span class="gtkdoc opt">&gt;</span>CoolProvider Chat<span class="gtkdoc opt">&lt;/</span>name<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>description<span class="gtkdoc opt">&gt;</span>Chat with your cool friends<span class="gtkdoc opt">&lt;/</span>description<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>icon<span class="gtkdoc opt">&gt;</span>coolprovider<span class="gtkdoc opt">&lt;/</span>icon<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>provider<span class="gtkdoc opt">&gt;</span>coolprovider<span class="gtkdoc opt">&lt;/</span>provider<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>translations<span class="gtkdoc opt">&gt;</span>coolprovider<span class="gtkdoc opt">&lt;/</span>translations<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;</span>tags<span class="gtkdoc opt">&gt;</span>
    <span class="gtkdoc opt">&lt;</span>tag<span class="gtkdoc opt">&gt;</span>chat<span class="gtkdoc opt">&lt;/</span>tag<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;/</span>tags<span class="gtkdoc opt">&gt;</span>

  <span class="gtkdoc opt">&lt;</span><span class="gtkdoc kwc">template</span><span class="gtkdoc opt">&gt;</span>
    <span class="gtkdoc opt">&lt;</span>group name<span class="gtkdoc opt">=</span><span class="string">&quot;telepathy&quot;</span><span class="gtkdoc opt">&gt;</span>
      <span class="gtkdoc opt">&lt;</span>setting name<span class="gtkdoc opt">=</span><span class="string">&quot;manager&quot;</span><span class="gtkdoc opt">&gt;</span>gabble<span class="gtkdoc opt">&lt;/</span>setting<span class="gtkdoc opt">&gt;</span>
      <span class="gtkdoc opt">&lt;</span>setting name<span class="gtkdoc opt">=</span><span class="string">&quot;protocol&quot;</span><span class="gtkdoc opt">&gt;</span>jabber<span class="gtkdoc opt">&lt;/</span>setting<span class="gtkdoc opt">&gt;</span>
    <span class="gtkdoc opt">&lt;/</span>group<span class="gtkdoc opt">&gt;</span>

    <span class="gtkdoc opt">&lt;</span>group name<span class="gtkdoc opt">=</span><span class="string">&quot;auth&quot;</span><span class="gtkdoc opt">&gt;</span>
      <span class="gtkdoc opt">&lt;</span>setting name<span class="gtkdoc opt">=</span><span class="string">&quot;method&quot;</span><span class="gtkdoc opt">&gt;</span>oauth2<span class="gtkdoc opt">&lt;/</span>setting<span class="gtkdoc opt">&gt;</span>
      <span class="gtkdoc opt">&lt;</span>setting name<span class="gtkdoc opt">=</span><span class="string">&quot;mechanism&quot;</span><span class="gtkdoc opt">&gt;</span>user_agent<span class="gtkdoc opt">&lt;/</span>setting<span class="gtkdoc opt">&gt;</span>
      <span class="gtkdoc opt">&lt;</span>group name<span class="gtkdoc opt">=</span><span class="string">&quot;oauth2/user_agent&quot;</span><span class="gtkdoc opt">&gt;</span>
        <span class="gtkdoc opt">&lt;</span>setting name<span class="gtkdoc opt">=</span><span class="string">&quot;ClientId&quot;</span><span class="gtkdoc opt">&gt;</span>ABCDEclient<span class="gtkdoc opt">.</span>ID<span class="gtkdoc opt">&lt;/</span>setting<span class="gtkdoc opt">&gt;</span>
      <span class="gtkdoc opt">&lt;/</span>group<span class="gtkdoc opt">&gt;</span>
    <span class="gtkdoc opt">&lt;/</span>group<span class="gtkdoc opt">&gt;</span>
  <span class="gtkdoc opt">&lt;/</span><span class="gtkdoc kwc">template</span><span class="gtkdoc opt">&gt;</span>

<span class="gtkdoc opt">&lt;/</span>service<span class="gtkdoc opt">&gt;</span></pre></td>
      </tr>
    </tbody>
  </table>
</div>

</div>
<br class="example-break"><p>
The example service description describes a service called
<code class="literal">coolprovider-chat</code>, indicated by the
<code class="sgmltag-attribute">id</code> attribute on the
<code class="sgmltag-element">service</code> element. The
<code class="sgmltag-element">type</code> element corresponds to the
service type. The <code class="sgmltag-element">name</code> element
contains a human-readable version of the service name. The
<code class="sgmltag-element">description</code> is a string that
describes the service in general. The
<code class="sgmltag-element">icon</code> element specifies a themed
icon to represent the service. The
<code class="sgmltag-element">provider</code> element must point
to the identifier of the provider which supports this service. The
<code class="sgmltag-element">translations</code> element is used to
indicate the gettext translation domain for the name and description elements,
to be used by applications when showing those elements in a UI. The
<code class="sgmltag-element">tags</code> element is a container of
<code class="sgmltag-element">tag</code> elements, which are used to
describe the service in abstract terms. Finally, a
<code class="sgmltag-element">template</code> element is a container
for <code class="sgmltag-element">group</code> elements, which
themselves are containers of
<code class="sgmltag-element">setting</code> elements. Settings stored
within the template are default settings for the service, which the
applications using the account may need in order to function correctly. The
default settings can be overriden, typically at run time during the account
configuration phase.
</p>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="id-1.4.3.4.5"></a>Installation</h3></div></div></div>
<p>
  Service description filenames should end in
  <code class="filename">.service</code> and be installed to
  <code class="filename">${prefix}/share/accounts/services</code>,
  which normally expands to
  <code class="filename">/usr/share/accounts/services</code>. The path
  can be queried with <span class="command"><strong>pkg-config</strong></span> by checking the
  <code class="varname">servicefilesdir</code> variable of the libaccounts-glib
  pkg-config file, for example:
  </p>
<div class="informalexample">
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td class="listing_lines" align="right"><pre>1</pre></td>
        <td class="listing_code"><pre class="programlisting">pkg<span class="gtkdoc opt">-</span>config <span class="gtkdoc opt">--</span>variable<span class="gtkdoc opt">=</span>servicefilesdir libaccounts<span class="gtkdoc opt">-</span>glib</pre></td>
      </tr>
    </tbody>
  </table>
</div>

</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>