source: general/sysutils/accountsservice.xml@ fedbe2f

12.1 ken/TL2024 lazarus rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since fedbe2f was b6c43e5, checked in by Xi Ruoyao <xry111@…>, 4 months ago

accountsservice: Fix the test suite for Python 3.12, and remove "systemctl enable"

The assertEquals function has been removed.

There is no point to always start it on boot, just let D-Bus start it on
demand.

Link: https://docs.python.org/3.12/whatsnew/3.12.html#id3

  • Property mode set to 100644
File size: 8.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY accountsservice-download-http
8 "https://www.freedesktop.org/software/accountsservice/accountsservice-&accountsservice-version;.tar.xz">
9 <!ENTITY accountsservice-download-ftp " ">
10 <!ENTITY accountsservice-md5sum "03dccfe1b306b7ca19743e86d118e64d">
11 <!ENTITY accountsservice-size "621 KB">
12 <!ENTITY accountsservice-buildsize "9.8 MB (add 0.5 MB for tests)">
13 <!ENTITY accountsservice-time "less than 0.1 SBU (with tests)">
14]>
15
16<sect1 id="accountsservice" xreflabel="AccountsService-&accountsservice-version;">
17 <?dbhtml filename="accountsservice.html"?>
18
19
20 <title>AccountsService-&accountsservice-version;</title>
21
22 <indexterm zone="accountsservice">
23 <primary sortas="a-AccountsService">AccountsService</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to AccountsService</title>
28
29 <para>
30 The <application>AccountsService</application> package provides a
31 set of <application>D-Bus</application> interfaces for querying
32 and manipulating user account information and an implementation
33 of those interfaces based on the usermod(8), useradd(8) and
34 userdel(8) commands.
35 </para>
36
37 &lfs120_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&accountsservice-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&accountsservice-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &accountsservice-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &accountsservice-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &accountsservice-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &accountsservice-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">AccountsService Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
77 <!--<xref linkend="libgcrypt"/> and-->
78 <xref linkend="polkit"/>
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <xref linkend="gobject-introspection"/>,
84 <phrase revision="sysv"><xref linkend="elogind"/></phrase>
85 <phrase revision="systemd"><xref role='runtime' linkend="systemd"/>
86 (runtime)</phrase>, and
87 <xref linkend="vala"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="gtk-doc"/> and
93 <xref linkend="xmlto"/>
94 </para>
95
96 <bridgehead renderas="sect4">Optional (for tests)</bridgehead>
97 <para role="optional">
98 <xref linkend="python-dbusmock"/> and
99 <xref linkend="pygobject3"/>
100 <!-- I did not have gtk-doc installed this time, and it worked fine. -->
101 </para>
102
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of AccountsService</title>
107
108 <para>
109 First, rename a directory whose presence prevents the build system from
110 running if <xref linkend="python-dbusmock"/> is not installed:
111 </para>
112
113<screen><userinput>mv tests/dbusmock{,-tests}</userinput></screen>
114
115 <para>
116 Then fix a test script so that the new directory is found, and adapt
117 it for Python 3.12.0 or later:
118 </para>
119
120<screen><userinput>sed -e '/accounts_service\.py/s/dbusmock/dbusmock-tests/' \
121 -e 's/assertEquals/assertEqual/' \
122 -i tests/test-libaccountsservice.py</userinput></screen>
123
124 <para>
125 Fix one test that fails if the <option>en_IE.UTF-8</option> locale
126 is not installed:
127 </para>
128
129<screen><userinput>sed -i '/^SIMULATED_SYSTEM_LOCALE/s/en_IE.UTF-8/en_HK.iso88591/' tests/test-daemon.py</userinput></screen>
130
131 <para>
132 Install <application>AccountsService</application> by running the following
133 commands:
134 </para>
135
136<screen revision="sysv"><userinput>mkdir build &amp;&amp;
137cd build &amp;&amp;
138
139meson setup .. \
140 --prefix=/usr \
141 --buildtype=release \
142 -Dadmin_group=adm \
143 -Delogind=true \
144 -Dsystemdsystemunitdir=no &amp;&amp;
145ninja</userinput></screen>
146
147<screen revision="systemd"><userinput>mkdir build &amp;&amp;
148cd build &amp;&amp;
149
150meson setup .. \
151 --prefix=/usr \
152 --buildtype=release \
153 -Dadmin_group=adm &amp;&amp;
154ninja</userinput></screen>
155
156 <para>
157 To test the package, issue <command>ninja test</command>.
158 </para>
159
160 <para>
161 Now, as the <systemitem class="username">root</systemitem> user:
162 </para>
163
164<screen role="root"><userinput>ninja install</userinput></screen>
165
166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
171 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
172 href="../../xincludes/meson-buildtype-release.xml"/>
173
174 <para>
175 <parameter>-Dadmin_group=adm</parameter>: This switch sets
176 the group for administrator accounts.
177 </para>
178
179 <para>
180 <option>-Ddocbook=true</option>: This switch enables building
181 the D-Bus interface API documentation (needs <xref linkend="xmlto"/>).
182 </para>
183
184 <para>
185 <option>-Dgtk_doc=true</option>: This switch enables building
186 the libaccountsservice API documentation (needs
187 <xref linkend="gtk-doc"/>).
188 </para>
189
190 <para>
191 <option>-Dvapi=false</option>: This switch disables building
192 the vala bindings. Use it if you have not installed
193 <xref linkend="vala"/>.
194 </para>
195
196 </sect2>
197
198 <sect2 role="configuration">
199 <title>Configuring AccountsService</title>
200
201 <para>
202 To allow users in the adm group to be listed as Administrators,
203 execute the following commands as the
204 <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>cat &gt; /etc/polkit-1/rules.d/40-adm.rules &lt;&lt; "EOF"
208<literal>polkit.addAdminRule(function(action, subject) {
209 return ["unix-group:adm"];
210 });</literal>
211EOF</userinput></screen>
212
213 </sect2>
214
215 <sect2 role="content">
216 <title>Contents</title>
217
218 <segmentedlist>
219 <segtitle>Installed Programs</segtitle>
220 <segtitle>Installed Libraries</segtitle>
221 <segtitle>Installed Directories</segtitle>
222
223 <seglistitem>
224 <seg>
225 accounts-daemon (in
226 <filename class="directory">/usr/libexec</filename>)
227 </seg>
228 <seg>
229 libaccountsservice.so
230 </seg>
231 <seg>
232 /usr/include/accountsservice-1.0,
233 /usr/share/accountsservice,
234 /usr/share/gtk-doc/html/libaccountsservice (optional), and
235 /var/lib/AccountsService
236 </seg>
237 </seglistitem>
238 </segmentedlist>
239
240 <variablelist>
241 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
242 <?dbfo list-presentation="list"?>
243 <?dbhtml list-presentation="table"?>
244
245 <varlistentry id="accounts-daemon">
246 <term><command>accounts-daemon</command></term>
247 <listitem>
248 <para>
249 is the <application>AccountsService</application> daemon
250 </para>
251 <indexterm zone="accountsservice accounts-daemon">
252 <primary sortas="b-accounts-daemon">accounts-daemon</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="libaccountsservice">
258 <term><filename class="libraryfile">libaccountsservice.so</filename></term>
259 <listitem>
260 <para>
261 contains the <application>AccountsService</application> API functions
262 </para>
263 <indexterm zone="accountsservice libaccountsservice">
264 <primary sortas="c-libaccountsservice">libaccountsservice.so</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 </variablelist>
270
271 </sect2>
272
273</sect1>
Note: See TracBrowser for help on using the repository browser.