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