[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[2e704d1b] | 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
|
---|
[20f5274e] | 8 | "&gnome-download-http;/gnome-session/&gnome-46;/gnome-session-&gnome-session-version;.tar.xz">
|
---|
[f4ac7141] | 9 | <!ENTITY gnome-session-download-ftp " ">
|
---|
[20f5274e] | 10 | <!ENTITY gnome-session-md5sum "f68f71cb53d650916f9ef9cb6076f643">
|
---|
[06900371] | 11 | <!ENTITY gnome-session-size "476 KB">
|
---|
[d4299c33] | 12 | <!ENTITY gnome-session-buildsize "14 MB">
|
---|
| 13 | <!ENTITY gnome-session-time "0.2 SBU">
|
---|
[2e704d1b] | 14 | ]>
|
---|
| 15 |
|
---|
[51dfb3e] | 16 | <sect1 id="gnome-session" xreflabel="gnome-session-&gnome-session-version;">
|
---|
[2e704d1b] | 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 |
|
---|
[de74d323] | 34 | &lfs122_checked;
|
---|
[2e704d1b] | 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">
|
---|
[00bb36f7] | 74 | <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
|
---|
[2e704d1b] | 75 | <xref linkend="gnome-desktop"/>,
|
---|
| 76 | <xref linkend="json-glib"/>,
|
---|
[02c8038] | 77 | <xref linkend="mesa"/>,
|
---|
[00bb36f7] | 78 | <phrase revision="systemd"><xref role="runtime" linkend="systemd"/>
|
---|
| 79 | (runtime),</phrase>
|
---|
[02c8038] | 80 | and <xref linkend="upower"/>
|
---|
[2e704d1b] | 81 | </para>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para role="optional">
|
---|
[0129a2f5] | 85 | <xref linkend="xmlto"/>, and
|
---|
[2e704d1b] | 86 | <xref linkend="libxslt"/> with
|
---|
| 87 | <xref linkend="DocBook"/> and
|
---|
| 88 | <xref linkend="docbook-xsl"/> (to build the documentation)
|
---|
| 89 | </para>
|
---|
[8558044] | 90 |
|
---|
[2e704d1b] | 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of GNOME Session</title>
|
---|
| 95 |
|
---|
[75215bf] | 96 | <para>
|
---|
[c339779] | 97 | When running GNOME under <xref linkend="wayland"/>, environment settings
|
---|
[881bfdc] | 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,
|
---|
[ab3656c] | 101 | execute the following command to make
|
---|
[881bfdc] | 102 | <command>gnome-session</command> use a login shell:
|
---|
[75215bf] | 103 | </para>
|
---|
| 104 |
|
---|
[881bfdc] | 105 | <screen><userinput>sed 's@/bin/sh@/bin/sh -l@' -i gnome-session/gnome-session.in</userinput></screen>
|
---|
[75215bf] | 106 |
|
---|
[2dbcc855] | 107 | <!--
|
---|
[c339779] | 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>
|
---|
[2dbcc855] | 113 | -->
|
---|
[2e704d1b] | 114 | <para>
|
---|
| 115 | Install <application>GNOME Session</application> by
|
---|
| 116 | running the following commands:
|
---|
| 117 | </para>
|
---|
| 118 |
|
---|
[51dfb3e] | 119 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
| 120 | cd build &&
|
---|
| 121 |
|
---|
[6af00bd] | 122 | meson setup --prefix=/usr \
|
---|
| 123 | --buildtype=release \
|
---|
| 124 | -D systemduserunitdir=/tmp \
|
---|
| 125 | .. &&
|
---|
[51dfb3e] | 126 | ninja</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[fef2695] | 129 | cd build &&
|
---|
| 130 |
|
---|
[91318eb] | 131 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[fef2695] | 132 | ninja</userinput></screen>
|
---|
[2e704d1b] | 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 |
|
---|
[fef2695] | 142 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[ab3656c] | 143 | <!-- For some reason, there are I/O errors with the DTD @ freedesktop
|
---|
| 144 | that causes error messages to flood stdin. -->
|
---|
[2e704d1b] | 145 |
|
---|
[98c3ae8] | 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 |
|
---|
[12fe806] | 152 |
|
---|
[86324838] | 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>
|
---|
[12fe806] | 162 |
|
---|
[86324838] | 163 | <screen role="root"><userinput>rm -v /usr/share/xsessions/gnome.desktop &&
|
---|
| 164 | rm -v /usr/share/wayland-sessions/gnome.desktop</userinput></screen>
|
---|
[e1344ff] | 165 |
|
---|
[7533b500] | 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 |
|
---|
[c339779] | 171 | <screen role="root" revision="sysv"><userinput>rm -rv /tmp/{*.d,*.target,*.service}</userinput></screen>
|
---|
[e1344ff] | 172 |
|
---|
[86324838] | 173 | <!-- this part is not needed on systemd, since the dbus session is created
|
---|
| 174 | by 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=@&/usr/bin/dbus-run-session @' \
|
---|
| 183 | -i /usr/share/wayland-sessions/gnome-wayland.desktop</userinput></screen>
|
---|
| 184 |
|
---|
[2e704d1b] | 185 | </sect2>
|
---|
| 186 |
|
---|
[adf17153] | 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"/>
|
---|
[2dbcc855] | 192 |
|
---|
[602c131c] | 193 | <!-- This option was removed in 46
|
---|
[2dbcc855] | 194 | <para revision="sysv">
|
---|
[6af00bd] | 195 | <parameter>-D systemd_journal=false</parameter>
|
---|
| 196 | and <parameter>-D systemduserunitdir=/tmp</parameter>: Allow building
|
---|
[ddafabd] | 197 | with elogind support on a SysV based system.
|
---|
[2dbcc855] | 198 | </para>
|
---|
[602c131c] | 199 | -->
|
---|
[2dbcc855] | 200 |
|
---|
| 201 | </sect2>
|
---|
[adf17153] | 202 |
|
---|
[a875313] | 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.
|
---|
[6d61390b] | 208 | <xref linkend="gdm"/> is the recommended display manager.
|
---|
[a875313] | 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 > ~/.xinitrc << "EOF"
|
---|
| 226 | <literal>dbus-run-session gnome-session</literal>
|
---|
| 227 | EOF
|
---|
| 228 |
|
---|
| 229 | startx</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 |
|
---|
[2e704d1b] | 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>
|
---|
[06900371] | 250 | gnome-session, gnome-session-inhibit, and gnome-session-quit
|
---|
[2e704d1b] | 251 | </seg>
|
---|
| 252 | <seg>
|
---|
| 253 | None
|
---|
| 254 | </seg>
|
---|
| 255 | <seg>
|
---|
[0129a2f5] | 256 | /usr/share/doc/gnome-session-&gnome-session-version; and
|
---|
| 257 | /usr/share/gnome-session
|
---|
[2e704d1b] | 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>
|
---|
[4c24eb0a] | 272 | Desktop environment
|
---|
[2e704d1b] | 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>
|
---|
[4c24eb0a] | 285 | Session functionality while executing the given command
|
---|
[2e704d1b] | 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>
|
---|
[4c24eb0a] | 297 | is used to end the <application>GNOME</application> Session
|
---|
[2e704d1b] | 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>
|
---|