This file is indexed.

/usr/share/gtk-doc/html/libsecret-1/migrating-misc.html is in libsecret-1-dev 0.18.6-1.

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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Errors and cancellation: Libsecret Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="Libsecret Library Reference Manual">
<link rel="up" href="migrating-api.html" title="API conversion">
<link rel="prev" href="migrating-memory.html" title="Non-pageable memory">
<link rel="next" href="annotation-glossary.html" title="Annotation Glossary">
<meta name="generator" content="GTK-Doc V1.27.1 (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="migrating-api.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="migrating-memory.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="annotation-glossary.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="migrating-misc"></a>Errors and cancellation</h2></div></div></div>
<p>libsecret uses standard the standard <span class="type">GCancellable</span> idiom
	to cancel operations.</p>
<p>It is not necessary to check whether the keyring daemon is
	available before using it. It is started automatically.</p>
<p>Errors are returned as standard <span class="type">GError</span> in the usual way.
	There are fewer errors that are worth handling in an intelligent way,
	exceptions are in the <a class="link" href="libsecret-SecretError.html#SecretError" title="enum SecretError"><span class="type">SecretError</span></a> enumeration. It is not recommended
	to display any <span class="type">GError</span> message returned by libsecret to the user. Most
	of the possible errors are DBus communication problems or similar.</p>
<p>Replacements for related libgnome-keyring functions and types
	are described below:
	</p>
<div class="table">
<a name="id-1.6.3.12.5.1"></a><p class="title"><b>Table 10. </b></p>
<div class="table-contents"><table class="table" border="1">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>libgnome-keyring</th>
<th>libsecret</th>
</tr></thead>
<tbody>
<tr>
<td><code class="function">gnome_keyring_cancel_request()</code></td>
<td>
<code class="function">g_cancellable_cancel()</code> on a <span class="type">GCancellable</span> passed to the relevant operation</td>
</tr>
<tr>
<td><code class="function">gnome_keyring_is_available()</code></td>
<td>no equivalent, the secret service is autostarted as necessary</td>
</tr>
<tr>
<td><code class="function">gnome_keyring_result_to_message()</code></td>
<td>use the message in the <span class="type">GError</span>, although most failures are not appropriate for display to the user</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_OK</code></td>
<td>no <span class="type">GError</span> returned</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_DENIED</code></td>
<td>no longer used, item or collection is simply not unlocked</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_NO_KEYRING_DAEMON</code></td>
<td><code class="literal">G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND</code></td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_ALREADY_UNLOCKED</code></td>
<td>no error, success returned</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_NO_SUCH_KEYRING</code></td>
<td>keyrings no longer have names, accessing an missing DBus object has usual failure</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_BAD_ARGUMENTS</code></td>
<td>
<code class="literal">G_DBUS_ERROR_INVALID_ARGS</code> or precondition failure in libsecret, this is always
			a programmer error</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_IO_ERROR</code></td>
<td>relevant DBus errors, or <a class="link" href="libsecret-SecretError.html#SECRET-ERROR-PROTOCOL:CAPS"><code class="literal">SECRET_ERROR_PROTOCOL</code></a>
</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_CANCELLED</code></td>
<td><code class="literal">G_IO_ERROR_CANCELLED</code></td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_KEYRING_ALREADY_EXISTS</code></td>
<td>no error, simply returns already existing keyring</td>
</tr>
<tr>
<td><code class="literal">GNOME_KEYRING_RESULT_NO_MATCH</code></td>
<td>on error, an empty list is returned</td>
</tr>
<tr>
<td><code class="function">gnome_keyring_string_list_free()</code></td>
<td>no equivalent</td>
</tr>
</tbody>
</table></div>
</div>
<p><br class="table-break"></p>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.27.1</div>
</body>
</html>