xfce4-session-4.12.1

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 35. Xfce Desktop

- Prev

  Xfwm4-4.12.5

- Next

  Xfce Applications

- Up
- Home

# xfce4-session-4.12.1

## Introduction to Xfce4 Session

Xfce4 Session is a session manager for Xfce. Its task is to save the state of your desktop (opened applications and their location) and restore it during a next startup. You can create several different sessions and choose one of them on startup.

This package is known to build and work properly using an LFS-8.4 platform.

### Package Information

- Download (HTTP): http://archive.xfce.org/src/xfce/xfce4-session/4.12/xfce4-session-4.12.1.tar.bz2

- Download MD5 sum: f4921fb2e606e74643daf1212263076c

- Download size: 1.2 MB

- Estimated disk space required: 14 MB

- Estimated build time: 0.2 SBU

### Xfce4 Session Dependencies

#### Required

libwnck-2.30.7, libxfce4ui-4.12.1, Which-2.21, and Xorg Applications

#### Recommended

desktop-file-utils-0.23, shared-mime-info-1.10 and polkit-gnome-0.105

#### Required Runtime

Xfdesktop-4.12.4

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/xfce4-session

## Installation of Xfce4 Session

Install Xfce4 Session by running the following commands:

    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --disable-legacy-sm &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install

## Command Explanations

`--disable-legacy-sm`: This switch disables legacy session management which isn't necessary on modern system.

## Configuring Xfce4 Session

There are several optional run time dependencies for Xfce4: ConsoleKit2-1.2.1, dbus-1.12.12, GnuPG-2.2.13, hicolor-icon-theme-0.17 and OpenSSH-7.9p1

When building an Xfce4 package, some configuration files are installed in `/usr/share/applications`, `/usr/share/icons`, and `/usr/share/mime`. In order to use those files in your Xfce4 session, you need to update various databases. Do that by running, as the `root` user (you need to have the recommended dependencies installed):

    update-desktop-database &&
    update-mime-database /usr/share/mime

## Starting Xfce4

You can start Xfce4 from runlevel 3, using xinit-1.4.0, or from runlevel 5, using a Display Manager, such as lightdm-1.28.0.

To start Xfce4 using xinit-1.4.0, run the following commands:

    cat > ~/.xinitrc << "EOF"
    ck-launch-session dbus-launch --exit-with-session startxfce4
    EOF

    startx

The X session starts on the first unused virtual terminal, normally vt7. You can switch to another vtn simultaneously pressing the keys Ctrl-Alt-Fn (n=1, 2, ...). To switch back to the X session, normally started at vt7, use Ctrl-Alt-F7. The vt where the command startx was executed will display many messages, including X starting messages, applications automatically started with the session, and eventually, some warning and error messages. You may prefer to redirect those messages to a log file, which not only will keep the initial vt uncluttered, but can also be used for debugging purposes. This can be done starting X with:

    startx &> ~/.x-session-errors

### Note

You may wish to drop consolekit and/or dbus-launch, e.g., just using startxfce4 in ~/.xinitrc. However some capabilities such as mounting or umounting file systems from a file manager will not be possible, or the reboot option will be absent or inoperative, among other problems.

When shutting down or rebooting, the shutdown messages appear on the vt where X was running. If you wish to see those messages, simultaneously press keys Alt-F7 (assuming that X was running on vt7).

## Contents

Installed Programs: xfce4-session, xfce4-session-logout, xfce4-session-settings and xfce4-tips
Installed Library: libxfsm-4.6.so
Installed Directories: /usr/include/xfce4/xfce4-session-4.6, /usr/share/xfce4/tips and /usr/share/doc/xfce4-session-4.12.1

### Short Descriptions

xfce4-session | starts up the Xfce Desktop Environment.
xfce4-session-logout | logs out from Xfce.
xfce4-session-settings | is a GTK+ 2 GUI which allows you to alter your preferences for your Xfce Session.
xfce4-tips | is a GTK+ 2 GUI which displays tips when you log in to an Xfce Session.
`libxfsm-4.6.so` | contains the Xfce Session API functions.

Last updated on 2019-02-19 03:13:15 -0600

- Prev

  Xfwm4-4.12.5

- Next

  Xfce Applications

- Up
- Home