%general-entities; ]> gnome-session-&gnome-session-version; gnome-session Introduction to GNOME Session The GNOME Session package contains the GNOME session manager. &lfs121_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &gnome-session-md5sum; Download size: &gnome-session-size; Estimated disk space required: &gnome-session-buildsize; Estimated build time: &gnome-session-time; GNOME Session Dependencies Required , , , , (runtime), and Optional , and with and (to build the documentation) Installation of GNOME Session When running GNOME under , environment settings are not imported for the user using the system profile. The Wayland developers are currently undecided on a standard method to provide system environment settings for user sessions. To work around this limitation, execute the following command to make gnome-session use a login shell: sed 's@/bin/sh@/bin/sh -l@' -i gnome-session/gnome-session.in Install GNOME Session by running the following commands: mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ -Dsystemd_journal=false \ -Dsystemduserunitdir=/tmp \ .. && ninja mkdir build && cd build && meson setup --prefix=/usr --buildtype=release .. && ninja This package does not come with a test suite. Now, as the root user: ninja install Move the documentation to a versioned directory: mv -v /usr/share/doc/gnome-session{,-&gnome-session-version;} This package creates two Xorg based .desktop files in the /usr/share/xsessions/ directory, and two Wayland based .desktop files in the /usr/share/wayland-sessions/ directory. Only one is needed in each directory on a BLFS system, so prevent the extra files showing up as options in a display manager. As the &root; user: rm -v /usr/share/xsessions/gnome.desktop && rm -v /usr/share/wayland-sessions/gnome.desktop Now, as the root user, remove systemd units that are useless on SysV systems: rm -rv /tmp/{*.d,*.target,*.service} The startup sequence of gnome-wayland needs to create a dbus session. On SysV, this has to be added to the shipped gnome-wayland.desktop file, which is written for systemd. As the &root; user: sed -e 's@^Exec=@&/usr/bin/dbus-run-session @' \ -i /usr/share/wayland-sessions/gnome-wayland.desktop Command Explanations -Dsystemd_journal=false and -Dsystemduserunitdir=/tmp: Allow building with elogind support on a SysV based system. Starting GNOME The easiest way to start GNOME is to use a display manager. is the recommended display manager. It is also possible to start GNOME from the command line. However, you must still have installed for some portions of the desktop to work. One reason to start from the command line is if you want Wayland support on a system that has the proprietary NVIDIA driver installed, since GDM will not show the Wayland session type on such a system. To start GNOME using , run the following commands: cat > ~/.xinitrc << "EOF" dbus-run-session gnome-session EOF startx Alternatively, to start GNOME with Wayland support, run the following command: XDG_SESSION_TYPE=wayland dbus-run-session gnome-session Contents Installed Programs Installed Libraries Installed Directories gnome-session, gnome-session-inhibit, and gnome-session-quit None /usr/share/doc/gnome-session-&gnome-session-version; and /usr/share/gnome-session Short Descriptions gnome-session is used to start up the GNOME Desktop environment gnome-session gnome-session-inhibit is used to inhibit certain GNOME Session functionality while executing the given command gnome-session-inhibit gnome-session-quit is used to end the GNOME Session gnome-session-quit