The GNOME Session package contains the GNOME session manager.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://download.gnome.org/sources/gnome-session/48/gnome-session-48.0.tar.xz
Download MD5 sum: 7b06c3d7aff4c13be55fe90a3a8bb0c4
Download size: 480 KB
Estimated disk space required: 9.6 MB
Estimated build time: 0.2 SBU
gnome-desktop-44.3, JSON-GLib-1.10.6, Mesa-25.1.8, Systemd-257.8 (runtime), and UPower-1.90.9
xmlto-0.0.29, and libxslt-1.1.43 with docbook-xml-4.5 and docbook-xsl-nons-1.79.2 (to build the documentation)
When running GNOME under Wayland-1.24.0, 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        \
            -D man=false               \
            -D docbook=false           \
            ..                         &&
ninja
        This package does not come with a test suite.
          Now, as the root user:
        
ninja install
If you generated the documentation, move it to a versioned directory:
mv -v /usr/share/doc/gnome-session{,-48.0}
        
          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
          --buildtype=release:
          Specify a buildtype suitable for stable releases of the package, as
          the default may produce unoptimized binaries.
        
          -D man=false -D
          docbook=false: These parameters disable building
          documentation. Omit them if you have built the optional
          dependencies.
        
The easiest way to start GNOME is to use a display manager. GDM-48.0 is the recommended display manager.
It is also possible to start GNOME from the command line. However, you must still have GDM-48.0 installed for the desktop to work. In previous releases of GNOME, gnome-shell would start without it installed, but this changed in 48.0. GDM does not need to be enabled to start gnome-shell from the command line.
To start GNOME using xinit-1.4.4, 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