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 "July 2005">
5
<!ENTITY version "@PACKAGE_VERSION@">
6
<!ENTITY app "@PACKAGE_NAME@">
9
<article id="index" lang="en">
14
<title>Xfce 4 Session Manager</title>
20
<holder>Benedikt Meurer</holder>
23
<!-- translators: uncomment this:
26
<year>2002</year> <holder>ME-THE-TRANSLATOR (Latin
32
<legalnotice id="legalnotice">
34
Permission is granted to copy, distribute and/or modify this document
35
under the terms of the GNU Free Documentation License, Version 1.1 or
36
any later version published by the Free Software Foundation; with no
37
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
38
Texts. The complete license text is available from the <ulink
39
type="http" url="http://www.gnu.org/">Free Software Foundation</ulink>.
45
<firstname>Benedikt</firstname>
46
<surname>Meurer</surname>
48
<jobtitle>Software developer</jobtitle>
49
<orgname>os-cillation</orgname>
50
<orgdiv>System development</orgdiv>
51
<address><email>benny@xfce.org</email></address>
57
This manual describes the &app; package, version &version;.
60
<pubdate>&date;</pubdate>
64
<sect1 id="xfsm-intro">
65
<title>Introduction</title>
67
<para><application>&app;</application> is a session manager for Xfce 4. Its task is to save the state of
68
your desktop (opened applications and their location) and restore it during a next
69
startup. You can create several different sessions and choose one of them on
73
<para><application>&app;</application> provides session management for both X11R6 and
74
legacy X11R5 protocols. If you don't need legacy session management
75
support, you can disable it at compile time, giving
76
--disable-legacy-sm to ./configure. Do <emphasis>NOT EVER</emphasis> run <application>smproxy</application> in
77
session that is managed by <application>&app;</application>, or weird things will happen.
78
The included legacy session management does everything that <application>smproxy</application>
79
would do, and besides that, it also supports multiscreen display.</para>
83
<sect1 id="xfce4-session-settings">
84
<title>Session Manager settings</title>
86
<sect2 id="xfsm-general-settings">
87
<title>General preferences</title>
89
<figure id="xfsm-general-fig">
90
<title><application>&app;</application> general preferences</title>
94
<imagedata fileref="images/xfsm-general.png" format="PNG" />
98
<phrase>Shows the General tab of the <application>&app;</application> settings dialog.</phrase>
106
<term>Display chooser on login</term>
108
<para>If set, the session manager will ask you to choose a session every
109
time you log in to Xfce.</para>
114
<term>Automatically save session on logout</term>
116
<para>This option instructs the session manager to save the current
117
session automatically when you log out. If you don't select this option
118
you'll be prompted whether you want to save the current session on
124
<term>Prompt on logout</term>
126
<para>This option disables the logout confirmation dialog. Whether
127
the session will be saved or not depends on whether you enabled the
128
automatic saving of sessions on logout or not.</para>
134
<sect2 id="xfsm-advanced-settings">
135
<title>Advanced preferences</title>
137
<figure id="xfsm-advanced-fig">
138
<title><application>&app;</application> advanced preferences</title>
142
<imagedata fileref="images/xfsm-advanced.png" format="PNG" />
146
<phrase>Shows Advanced tab of the <application>&app;</application> settings dialog.</phrase>
154
<term>Launch Gnome services on startup</term>
156
<para>Enable this option if you need the GNOME keyring daemon to be run
157
on startup. This option also instructs <application>&app;</application> to bring up the GNOME assistive
158
technologies at startup (if enabled in the GNOME control center). See the
159
GNOME documentation for more information on this topic.</para>
164
<term>Launch KDE services on startup</term>
166
<para>Enable this option if you plan to run KDE applications as part of
167
your Xfce Desktop session. This will notably increase the startup time,
168
but on the other hand, KDE applications will startup faster. Some KDE
169
applications may not work at all if you don't enable this option.</para>
174
<term>Manage remote applications</term>
176
<para>Allow the session manager to manage applications running on
177
remote hosts. Since this option may constitute a security risk, by listening to
178
a TCP port on your system, do not enable it unless you know what you are
180
<para>System administrators may want to disable this option globally using the
181
session managers <ulink url="#xfsm-kiosk-mode" type="html">KIOSK
182
capabilities</ulink>.</para>
190
<sect1 id="xfsm-customize">
191
<title>Customizing the Session Manager</title>
193
<para>You can customize the splash-screen that <application>&app;</application> will use when you log in to
194
Xfce 4. There is a dedicated dialog available from the <emphasis>Xfce 4
195
Settings Manager</emphasis>.</para>
197
<sect2 id="xfsm-engines">
198
<title>Splash screen settings</title>
200
<figure id="splash-screen-settings-fig">
201
<title>Splash screen settings dialog</title>
205
<imagedata fileref="images/xfsm-splash.png" format="PNG" />
209
<phrase>Shows the <application>&app;</application> splash screen settings dialog.</phrase>
215
<para>On the left, the dialog shows a list of all installed engines.
216
Select an engine, and you will see, if available, a preview and
217
information about it. You can click on the <guibutton>Test</guibutton>
218
button to see a demonstration of the selected splash screen
221
<para><application>&app;</application> provides three Splash themes engines by default. Their
222
respective configuration options - if any - are available from the
223
<guibutton>Configure</guibutton> button.</para>
226
<sect2 id="xfsm-shutdown">
227
<title>Shutdown/reboot options</title>
229
<para><application>&app;</application> supports shutting down your computer when you log out
230
of your desktop session. To be able to shutdown the computer, you
231
have to be listed in the systems <filename>sudoers</filename> file,
232
in particular, you must be allowed to execute the command
233
<filename>${libdir}/xfce4/session/xfsm-shutdown-helper</filename>
234
(<filename>/usr/sbin/xfsm-shutdown-helper</filename> on Debian GNU/Linux)
235
as user root (where <filename>${libdir}</filename> is the <filename
236
role="directory">lib</filename> sub directory in the prefix you
237
installed <application>&app;</application>, for example
238
<filename role="directory">/usr/local/lib/xfce4/session</filename>).</para>
240
<para>For example, lets say, you installed <application>&app;</application> into <filename
241
role="directory">/usr/local</filename>, your hostname is <emphasis>myhost</emphasis>
242
and your user account is named <emphasis>myuser</emphasis>, then you
243
would have to add the following line to your <filename>sudoers</filename>
244
file (remember to use <application>visudo</application> to edit
248
myuser myhost=/usr/local/lib/xfce4/session/xfsm-shutdown-helper
254
<sect1 id="xfsm-advanced">
255
<title>Advanced</title>
257
<sect2 id="files-and-env-vars">
258
<title>Files and Environment Variables</title>
260
<para>Xfce now uses the Basedir Specification as defined on <ulink
261
url="http://freedesktop.org/" type="http">Freedesktop.org</ulink> to
262
locate its data and configuration files. This means that file locations
263
will be specified as a path relative to the directories described in
264
the specification.</para>
268
<term>${XDG_CONFIG_HOME}</term>
270
<para>The first base directory to look for configuration
271
files. By default this is set to <filename
272
role="directory">~/.config/</filename>.</para>
277
<term>${XDG_CONFIG_DIRS}</term>
279
<para>A list of system directories that contain configuration
280
data. By default the panel will look in <filename
281
role="directory">${sysconfdir}/xdg/</filename> and
282
<filename role="directory">/etc/xdg/</filename>. The value of
283
${sysconfdir} depends on how the program was build and will often be
284
<filename role="directory">/etc/</filename> for binary
290
<term>${XDG_CACHE_HOME}</term>
292
<para>Specifies the root for all user-specific cache data. If
293
this environment variable is unset, it defaults to <filename
294
role="directory">~/.cache</filename>.</para>
299
<term>${XDG_CONFIG_DIRS}/autostart/</term>
301
<para>This is the location where the list of applications that
302
should be automatically run on login is stored. Each autostarted
303
application is represented by a <filename>.desktop</filename>
304
file (see the <ulink type="http"
305
url="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html">Desktop
306
Entry Specification</ulink> for details).</para>
307
<para>Prior to Xfce 4.3, the list of autostarted applications
308
was stored in <filename role="directory">~/Desktop/Autostart</filename>,
309
which contained scripts and symbolic links to applications. If
310
you run <application>&app;</application> &version; or above for the first time, it will
311
automatically migrate the autostart items from the old location
312
to the standard location and place a <filename>LOCATION-CHANGED.txt</filename>
313
file in the old directory, that describes the location change.</para>
318
<term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-session.rc</term>
320
<para>This is the location of the configuration file that
321
includes the various settings for <application>&app;</application>, which can be changed
322
from the settings dialog.</para>
327
<term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-splash.rc</term>
329
<para>This is the location of the configuration file that
330
includes the configuration for the splash screen, which
331
can be changed from the settings dialog.</para>
336
<term>${XDG_CACHE_HOME}/sessions/</term>
338
<para>The directory where <application>&app;</application> and <application>xfwm4</application>
339
store the session data to.</para>
344
<term>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</term>
346
<para>Kiosk mode configuration file. See <ulink url="#xfsm-kiosk-mode">next
347
section</ulink> for an explanation.</para>
352
<para>None of the configuration files, except the <filename>kioskrc</filename>,
353
are designed to be edited by hand during a Xfce session; in fact, the changes will
354
be overwritten if you edit them while the session manager or the settings managers
357
<para>System administrators might want to customize the file
358
<filename>${sysconfdir}/xdg/xfce4-session/xfce4-session.rc</filename> to change
359
the default applications that are run on Xfce startup. For example, if you want to
360
start the <application>xfce4-iconbox</application> instead of the
361
<application>xftaskbar4</application>, you would change the <emphasis>[Failsafe
362
Session]</emphasis> section like to something like this:</para>
367
Client0_Command=xfwm4
368
Client0_PerScreen=False
369
Client1_Command=xfce4-panel
370
Client1_PerScreen=True
371
Client2_Command=xfce4-iconbox
372
Client2_PerScreen=True
373
Client3_Command=xfdesktop
374
Client3_PerScreen=False
378
<sect2 id="xfsm-kiosk-mode">
379
<title>Kiosk Mode</title>
381
<para>The session manager offers support for the Kiosk Mode, that helps to
382
prevent users from making changes to their session settings. To use it you
383
have to edit or create the file
384
<filename>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</filename>.</para>
386
<para>The way to explain the format of this file is by using an example. The
387
xfce4-session section of your <filename>kioskrc</filename> might look like
395
CustomizeCompatibility=%wheel
397
CustomizeSecurity=NONE
400
<para>This allows all users to change their splash, chooser and logout settings,
401
but allows only users in the group <emphasis>wheel</emphasis> to customize the
402
compatibility settings and shutdown the system. No one will be allowed to adjust
403
the security settings.</para>
405
<para>The session manager supports the following KIOSK capabilities:</para>
409
<term>CustomizeSplash</term>
411
<para>Whether or not the user is allowed to customize the splash screen.</para>
416
<term>CustomizeChooser</term>
418
<para>Whether or not the user is allowed to customize the session chooser settings.</para>
423
<term>CustomizeLogout</term>
425
<para>Whether or not the user is allowed to customize the logout settings.</para>
430
<term>CustomizeCompatibility</term>
432
<para>Whether or not the user is allowed to customize the compatibility
433
settings (KDE/Gnome compat)</para>
438
<term>CustomizeSecurity</term>
440
<para>Whether or not the user is allowed to customize the security settings.
441
This is one of the most <emphasis>IMPORTANT</emphasis> settings, since it
442
prevents users (actually <filename>libICE</filename>) from binding to a TCP port.</para>
447
<term>Shutdown</term>
449
<para>Whether or not the user is allowed to shutdown (reboot or poweroff) the system.
450
If a user lacks this capability the reboot and poweroff options in the shutdown
451
dialog will be greyed out.</para>
458
<sect1 id="xfsm-copyright">
459
<title>About <application>&app;</application></title>
461
<para><application>&app;</application> was written by Benedikt Meurer
462
(<email>benny@xfce.org</email>).
463
To find more information, please visit the
464
<ulink url="http://www.xfce.org" type="http">Xfce web site</ulink>.
467
<para>To report a bug or make a suggestion regarding this application or
468
this manual, use the bug tracking system at <ulink
469
url="http://bugzilla.xfce.org/"
470
type="http">http://bugzilla.xfce.org/</ulink>.
473
<para>If you have questions about the use or installation of this package,
474
please ask on the <ulink
475
url="http://lunar-linux.org/mailman/listinfo/xfce"
476
type="http">xfce</ulink> mailing list. Development discussion takes
478
url="http://lunar-linux.org/mailman/listinfo/xfce4-dev"
479
type="http">xfce4-dev</ulink> mailing list.
482
<para> This program is distributed under the terms of the
483
GNU General Public License as published by the Free Software Foundation;
484
either version 2 of the License, or (at your option) any later version.
487
<para>You should have received a copy of the GNU General Public License
488
along with this program; if not, write to the Free Software
489
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,