2
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
4
<!ENTITY date "Jan 2005">
5
<!ENTITY appversion "4.2.0">
6
<!ENTITY app "<application>xfce4-session</application>">
9
<article id="xfce4-session" lang="en">
14
<title>Xfce 4 Session Manager</title>
19
<holder>Benedikt Meurer</holder>
22
<!-- translators: uncomment this:
25
<year>2002</year> <holder>ME-THE-TRANSLATOR (Latin
31
<legalnotice id="legalnotice">
33
This document is provided under the terms of the GNU GPL, version
34
2 or (at your option) any later version.
40
<firstname>Benedikt</firstname>
41
<surname>Meurer</surname>
43
<address><email>benny@xfce.org</email></address>
44
<orgname>os-cillation</orgname>
45
<orgdiv>System development</orgdiv>
46
<jobtitle>Software developer</jobtitle>
50
<!-- This is appropriate place for other contributors: translators,
51
maintainers, etc. Commented out by default.
53
<othercredit role="translator">
54
<firstname>Latin</firstname> <surname>Translator 1</surname>
56
<orgname>Latin Translation Team</orgname>
57
<address><email>translator@gnome.org</email> </address>
58
</affiliation> <contrib>Latin translation</contrib>
66
This manual describes the &app; package, version &appversion;. Last updated: &date;
73
<sect1 id="xfsm-intro">
74
<title>Introduction</title>
76
<para>&app; is a session manager for Xfce 4. Its task is to save the state of
77
your desktop (opened applications and their location) and restore it during a next
78
startup. You can create several different sessions and choose one of them on
82
<para>&app; provides session management for both X11R6 and
83
legacy X11R5 protocols. If you don't need legacy session management
84
support, you can disable it at compile time, giving
85
--disable-legacy-sm to ./configure. Do <emphasis>NOT EVER</emphasis> run <application>smproxy</application> in
86
session that is managed by &app;, or weird things will happen.
87
The included legacy session management does everything that <application>smproxy</application>
88
would do, and besides that, it also supports multiscreen display.</para>
94
<sect1 id="xfce4-session-settings">
95
<title>Session Manager settings</title>
97
<sect2 id="xfsm-general-settings">
98
<title>General preferences</title>
100
<figure id="xfsm-general-fig">
101
<title>&app; general preferences</title>
105
<imagedata fileref="images/xfsm-general.png" format="PNG" />
109
<phrase>Shows the General tab of the &app; settings dialog.</phrase>
117
<term>Display chooser on login</term>
119
<para>If set, the session manager will ask you to choose a session every
120
time you log in to Xfce.</para>
125
<term>Automatically save session on logout</term>
127
<para>This option instructs the session manager to save the current
128
session automatically when you log out. If you don't select this option
129
you'll be prompted whether you want to save the current session on
135
<term>Prompt on logout</term>
137
<para>This option disables the logout confirmation dialog. Whether
138
the session will be saved or not depends on whether you enabled the
139
automatic saving of sessions on logout or not.</para>
145
<sect2 id="xfsm-advanced settings">
146
<title>Advanced preferences</title>
148
<figure id="xfsm-advanced-fig">
149
<title>&app; advanced preferences</title>
153
<imagedata fileref="images/xfsm-advanced.png" format="PNG" />
157
<phrase>Shows Advanced tab of the &app; settings dialog.</phrase>
165
<term>Launch Gnome services on startup</term>
167
<para>Enable this option if you need the GNOME keyring daemon to be run
168
on startup. This option also instructs &app; to bring up the GNOME assistive
169
technologies at startup (if enabled in the GNOME control center). See the
170
GNOME documentation for more information on this topic.</para>
175
<term>Launch KDE services on startup</term>
177
<para>Enable this option if you plan to run KDE applications as part of
178
your Xfce Desktop session. This will notably increase the startup time,
179
but on the other hand, KDE applications will startup faster. Some KDE
180
applications may not work at all if you don't enable this option.</para>
185
<term>Manage remote applications</term>
187
<para>Allow the session manager to manage applications running on
188
remote hosts. Since this option may constitute a security risk, by listening to
189
a TCP port on your system, do not enable it unless you know what you are
191
<para>System administrators may want to disable this option globally using the
192
session managers <ulink url="#xfsm-kiosk-mode" type="html">KIOSK
193
capabilities</ulink>.</para>
203
<sect1 id="xfsm-customize">
204
<title>Customizing the Session Manager</title>
206
<para>You can customize the splash-screen that &app; will use when you log in to
207
Xfce 4. There is a dedicated dialog available from the <emphasis>Xfce 4
208
Settings Manager</emphasis>.</para>
210
<sect2 id="xfsm-engines">
211
<title>Splash screen settings</title>
213
<figure id="splash-screen-settings-fig">
214
<title>Splash screen settings dialog</title>
218
<imagedata fileref="images/xfsm-splash.png" format="PNG" />
222
<phrase>Shows the &app; splash screen settings dialog.</phrase>
228
<para>On the left, the dialog shows a list of all installed engines.
229
Select an engine, and you will see, if available, a preview and
230
information about it. You can click on the <guibutton>Test</guibutton>
231
button to see a demonstration of the selected splash screen
234
<para>&app; provides three Splash themes engines by default. Their
235
respective configuration options - if any - are available from the
236
<guibutton>Configure</guibutton> button.</para>
239
<sect2 id="xfsm-shutdown">
240
<title>Shutdown/reboot options</title>
242
<para>&app; supports shutting down your computer when you log out
243
of your desktop session. To be able to shutdown the computer, you
244
have to be listed in the systems <filename>sudoers</filename> file,
245
in particular, you must be allowed to execute the command
246
<filename>${libexecdir}/xfsm-shutdown-helper</filename>
247
(<filename>/usr/sbin/xfsm-shutdown-helper</filename> on Debian GNU/Linux)
248
as user root (where <filename>${libexecdir}</filename> is the <filename
249
role="directory">libexec</filename> sub directory in the prefix you
250
installed &app;, for example
251
<filename role="directory">/usr/local/libexec</filename>).</para>
253
<para>For example, lets say, you installed &app; into <filename
254
role="directory">/usr/local</filename>, your hostname is <emphasis>myhost</emphasis>
255
and your user account is named <emphasis>myuser</emphasis>, then you
256
would have to add the following line to your <filename>sudoers</filename>
257
file (remember to use <application>visudo</application> to edit
261
myuser myhost=/usr/local/libexec/xfsm-shutdown-helper
269
<sect1 id="xfsm-advanced">
270
<title>Advanced</title>
272
<sect2 id="files-and-env-vars">
273
<title>Files and Environment Variables</title>
275
<para>Xfce now uses the Basedir Specification as defined on <ulink
276
url="http://freedesktop.org/" type="http">Freedesktop.org</ulink> to
277
locate its data and configuration files. This means that file locations
278
will be specified as a path relative to the directories described in
279
the specification.</para>
283
<term>${XDG_CONFIG_HOME}</term>
285
<para>The first base directory to look for configuration
286
files. By default this is set to <filename
287
role="directory">~/.config/</filename>.</para>
292
<term>${XDG_CONFIG_DIRS}</term>
294
<para>A list of system directories that contain configuration
295
data. By default the panel will look in <filename
296
role="directory">${sysconfdir}/xdg/</filename> and
297
<filename role="directory">/etc/xdg/</filename>. The value of
298
${sysconfdir} depends on how the program was build and will often be
299
<filename role="directory">/etc/</filename> for binary
305
<term>${XDG_CACHE_HOME}</term>
307
<para>Specifies the root for all user-specific cache data. If
308
this environment variable is unset, it defaults to <filename
309
role="directory">~/.cache</filename>.</para>
314
<term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-session.rc</term>
316
<para>This is the location of the configuration file that
317
includes the various settings for &app;, which can be changed
318
from the settings dialog.</para>
323
<term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-splash.rc</term>
325
<para>This is the location of the configuration file that
326
includes the configuration for the splash screen, which
327
can be changed from the settings dialog.</para>
332
<term>${XDG_CACHE_HOME}/sessions/</term>
334
<para>The directory where &app; and <application>xfwm4</application>
335
store the session data to.</para>
340
<term>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</term>
342
<para>Kiosk mode configuration file. See <ulink url="#xfsm-kiosk-mode">next
343
section</ulink> for an explanation.</para>
348
<para>None of the configuration files, except the <filename>kioskrc</filename>,
349
are designed to be edited by hand during a Xfce session; in fact, the changes will
350
be overwritten if you edit them while the session manager or the settings managers
353
<para>System administrators might want to customize the file
354
<filename>${sysconfdir}/xdg/xfce4-session/xfce4-session.rc</filename> to change
355
the default applications that are run on Xfce startup. For example, if you want to
356
start the <application>xfce4-iconbox</application> instead of the
357
<application>xftaskbar4</application>, you would change the <emphasis>[Failsafe
358
Session]</emphasis> section like to something like this:</para>
363
Client0_Command=xfwm4
364
Client0_PerScreen=False
365
Client1_Command=xfce4-panel
366
Client1_PerScreen=True
367
Client2_Command=xfce4-iconbox
368
Client2_PerScreen=True
369
Client3_Command=xfdesktop
370
Client3_PerScreen=False
374
<sect2 id="xfsm-kiosk-mode">
375
<title>Kiosk Mode</title>
377
<para>The session manager offers support for the Kiosk Mode, that helps to
378
prevent users from making changes to their session settings. To use it you
379
have to edit or create the file
380
<filename>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</filename>.</para>
382
<para>The way to explain the format of this file is by using an example. The
383
xfce4-session section of your <filename>kioskrc</filename> might look like
391
CustomizeCompatibility=%wheel
393
CustomizeSecurity=NONE
396
<para>This allows all users to change their splash, chooser and logout settings,
397
but allows only users in the group <emphasis>wheel</emphasis> to customize the
398
compatibility settings and shutdown the system. No one will be allowed to adjust
399
the security settings.</para>
401
<para>The session manager supports the following KIOSK capabilities:</para>
405
<term>CustomizeSplash</term>
407
<para>Whether or not the user is allowed to customize the splash screen.</para>
412
<term>CustomizeChooser</term>
414
<para>Whether or not the user is allowed to customize the session chooser settings.</para>
419
<term>CustomizeLogout</term>
421
<para>Whether or not the user is allowed to customize the logout settings.</para>
426
<term>CustomizeCompatibility</term>
428
<para>Whether or not the user is allowed to customize the compatibility
429
settings (KDE/Gnome compat)</para>
434
<term>CustomizeSecurity</term>
436
<para>Whether or not the user is allowed to customize the security settings.
437
This is one of the most <emphasis>IMPORTANT</emphasis> settings, since it
438
prevents users (actually <filename>libICE</filename>) from binding to a TCP port.</para>
443
<term>Shutdown</term>
445
<para>Whether or not the user is allowed to shutdown (reboot or poweroff) the system.
446
If a user lacks this capability the reboot and poweroff options in the shutdown
447
dialog will be greyed out.</para>
456
<sect1 id="xfsm-copyright">
457
<title>About &app;</title>
459
<para>&app; was written by Benedikt Meurer
460
(<email>benny@xfce.org</email>).
461
To find more information, please visit the
462
<ulink url="http://www.xfce.org" type="http">Xfce web site</ulink>.
465
<para>To report a bug or make a suggestion regarding this application or
466
this manual, use the bug tracking system at <ulink
467
url="http://bugzilla.xfce.org/"
468
type="http">http://bugzilla.xfce.org/</ulink>.
471
<para>If you have questions about the use or installation of this package,
472
please ask on the <ulink
473
url="http://lunar-linux.org/mailman/listinfo/xfce"
474
type="http">xfce</ulink> mailing list. Development discussion takes
476
url="http://lunar-linux.org/mailman/listinfo/xfce4-dev"
477
type="http">xfce4-dev</ulink> mailing list.
480
<para> This program is distributed under the terms of the
481
GNU General Public License as published by the Free Software Foundation;
482
either version 2 of the License, or (at your option) any later version.
485
<para>You should have received a copy of the GNU General Public License
486
along with this program; if not, write to the Free Software
487
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,