source: gnome/platform/gnome-session.xml@ 602c131c

12.2 lazarus trunk
Last change on this file since 602c131c was 602c131c, checked in by Douglas R. Reno <renodr@…>, 4 weeks ago

gnome-session: remove a now-invalid option from the meson command line
on SysV

  • Property mode set to 100644
File size: 10.0 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 gnome-session-download-http
8 "&gnome-download-http;/gnome-session/&gnome-46;/gnome-session-&gnome-session-version;.tar.xz">
9 <!ENTITY gnome-session-download-ftp " ">
10 <!ENTITY gnome-session-md5sum "f68f71cb53d650916f9ef9cb6076f643">
11 <!ENTITY gnome-session-size "476 KB">
12 <!ENTITY gnome-session-buildsize "14 MB">
13 <!ENTITY gnome-session-time "0.2 SBU">
14]>
15
16<sect1 id="gnome-session" xreflabel="gnome-session-&gnome-session-version;">
17 <?dbhtml filename="gnome-session.html"?>
18
19
20 <title>gnome-session-&gnome-session-version;</title>
21
22 <indexterm zone="gnome-session">
23 <primary sortas="a-gnome-session">gnome-session</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to GNOME Session</title>
28
29 <para>
30 The <application>GNOME Session</application> package contains
31 the <application>GNOME</application> session manager.
32 </para>
33
34 &lfs121_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&gnome-session-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&gnome-session-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &gnome-session-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &gnome-session-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &gnome-session-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &gnome-session-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">GNOME Session Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
75 <xref linkend="gnome-desktop"/>,
76 <xref linkend="json-glib"/>,
77 <xref linkend="mesa"/>,
78 <phrase revision="systemd"><xref role="runtime" linkend="systemd"/>
79 (runtime),</phrase>
80 and <xref linkend="upower"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="xmlto"/>, and
86 <xref linkend="libxslt"/> with
87 <xref linkend="DocBook"/> and
88 <xref linkend="docbook-xsl"/> (to build the documentation)
89 </para>
90
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of GNOME Session</title>
95
96 <para>
97 When running GNOME under <xref linkend="wayland"/>, environment settings
98 are not imported for the user using the system profile. The Wayland
99 developers are currently undecided on a standard method to provide system
100 environment settings for user sessions. To work around this limitation,
101 execute the following command to make
102 <command>gnome-session</command> use a login shell:
103 </para>
104
105<screen><userinput>sed 's@/bin/sh@/bin/sh -l@' -i gnome-session/gnome-session.in</userinput></screen>
106
107<!--
108 <para revision="sysv">
109 Adapt meson.build so that gnome-session can build without systemd:
110 </para>
111
112<screen revision="sysv"><userinput remap="pre">sed -i "/ systemd_dep/,+3d;/if enable_systemd/a \ systemd_userunitdir = '/tmp\'" meson.build</userinput></screen>
113-->
114 <para>
115 Install <application>GNOME Session</application> by
116 running the following commands:
117 </para>
118
119<screen revision="sysv"><userinput>mkdir build &amp;&amp;
120cd build &amp;&amp;
121
122meson setup --prefix=/usr \
123 --buildtype=release \
124 -D systemduserunitdir=/tmp \
125 .. &amp;&amp;
126ninja</userinput></screen>
127
128<screen revision="systemd"><userinput>mkdir build &amp;&amp;
129cd build &amp;&amp;
130
131meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
132ninja</userinput></screen>
133
134 <para>
135 This package does not come with a test suite.
136 </para>
137
138 <para>
139 Now, as the <systemitem class="username">root</systemitem> user:
140 </para>
141
142<screen role="root"><userinput>ninja install</userinput></screen>
143<!-- For some reason, there are I/O errors with the DTD @ freedesktop
144 that causes error messages to flood stdin. -->
145
146 <para>
147 Move the documentation to a versioned directory:
148 </para>
149
150<screen role="root"><userinput>mv -v /usr/share/doc/gnome-session{,-&gnome-session-version;}</userinput></screen>
151
152
153 <para>
154 This package creates two Xorg based <filename>.desktop</filename> files
155 in the <filename class="directory">/usr/share/xsessions/</filename>
156 directory, and two Wayland based <filename>.desktop</filename> files in
157 the <filename class="directory">/usr/share/wayland-sessions/</filename>
158 directory. Only one is needed in each directory on a BLFS system, so
159 prevent the extra files showing up as options in a display manager. As
160 the &root; user:
161 </para>
162
163<screen role="root"><userinput>rm -v /usr/share/xsessions/gnome.desktop &amp;&amp;
164rm -v /usr/share/wayland-sessions/gnome.desktop</userinput></screen>
165
166 <para revision="sysv">
167 Now, as the <systemitem class="username">root</systemitem> user,
168 remove systemd units that are useless on SysV systems:
169 </para>
170
171<screen role="root" revision="sysv"><userinput>rm -rv /tmp/{*.d,*.target,*.service}</userinput></screen>
172
173<!-- this part is not needed on systemd, since the dbus session is created
174by systemd-user.-->
175 <para revision="sysv">
176 The startup sequence of gnome-wayland needs to create a dbus session.
177 On SysV, this has to be added to the shipped
178 <filename>gnome-wayland.desktop</filename> file, which is written for
179 systemd. As the &root; user:
180 </para>
181
182<screen role="root" revision="sysv"><userinput>sed -e 's@^Exec=@&amp;/usr/bin/dbus-run-session @' \
183 -i /usr/share/wayland-sessions/gnome-wayland.desktop</userinput></screen>
184
185 </sect2>
186
187 <sect2 role="commands">
188 <title>Command Explanations</title>
189
190 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
191 href="../../xincludes/meson-buildtype-release.xml"/>
192
193<!-- This option was removed in 46
194 <para revision="sysv">
195 <parameter>-D systemd_journal=false</parameter>
196 and <parameter>-D systemduserunitdir=/tmp</parameter>: Allow building
197 with elogind support on a SysV based system.
198 </para>
199-->
200
201 </sect2>
202
203 <sect2 role="starting">
204 <title>Starting GNOME</title>
205
206 <para>
207 The easiest way to start GNOME is to use a display manager.
208 <xref linkend="gdm"/> is the recommended display manager.
209 </para>
210
211 <para>
212 It is also possible to start <application>GNOME</application> from the
213 command line. However, you must still have <xref linkend="gdm"/> installed
214 for some portions of the desktop to work. One reason to start from the
215 command line is if you want Wayland support on a system that has the
216 proprietary NVIDIA driver installed, since GDM will not show the Wayland
217 session type on such a system.
218 </para>
219
220 <para>
221 To start <application>GNOME</application> using
222 <xref role="nodep" linkend="xinit"/>, run the following commands:
223 </para>
224
225<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
226<literal>dbus-run-session gnome-session</literal>
227EOF
228
229startx</userinput></screen>
230
231 <para>
232 Alternatively, to start <application>GNOME</application> with Wayland
233 support, run the following command:
234 </para>
235
236<screen role="nodump"><userinput>XDG_SESSION_TYPE=wayland dbus-run-session gnome-session</userinput></screen>
237
238 </sect2>
239
240 <sect2 role="content">
241 <title>Contents</title>
242
243 <segmentedlist>
244 <segtitle>Installed Programs</segtitle>
245 <segtitle>Installed Libraries</segtitle>
246 <segtitle>Installed Directories</segtitle>
247
248 <seglistitem>
249 <seg>
250 gnome-session, gnome-session-inhibit, and gnome-session-quit
251 </seg>
252 <seg>
253 None
254 </seg>
255 <seg>
256 /usr/share/doc/gnome-session-&gnome-session-version; and
257 /usr/share/gnome-session
258 </seg>
259 </seglistitem>
260 </segmentedlist>
261
262 <variablelist>
263 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
264 <?dbfo list-presentation="list"?>
265 <?dbhtml list-presentation="table"?>
266
267 <varlistentry id="gnome-session-prog">
268 <term><command>gnome-session</command></term>
269 <listitem>
270 <para>
271 is used to start up the <application>GNOME</application>
272 Desktop environment
273 </para>
274 <indexterm zone="gnome-session gnome-session-prog">
275 <primary sortas="b-gnome-session">gnome-session</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="gnome-session-inhibit">
281 <term><command>gnome-session-inhibit</command></term>
282 <listitem>
283 <para>
284 is used to inhibit certain <application>GNOME</application>
285 Session functionality while executing the given command
286 </para>
287 <indexterm zone="gnome-session gnome-session-inhibit">
288 <primary sortas="b-gnome-session-inhibit">gnome-session-inhibit</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="gnome-session-quit">
294 <term><command>gnome-session-quit</command></term>
295 <listitem>
296 <para>
297 is used to end the <application>GNOME</application> Session
298 </para>
299 <indexterm zone="gnome-session gnome-session-quit">
300 <primary sortas="b-gnome-session-quit">gnome-session-quit</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 </variablelist>
306
307 </sect2>
308
309</sect1>
Note: See TracBrowser for help on using the repository browser.