~ubuntu-branches/ubuntu/karmic/xfce4-session/karmic

« back to all changes in this revision

Viewing changes to doc/C/xfce4-session.html

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2005-11-06 22:01:12 UTC
  • mto: (4.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051106220112-5rusox237ymjghsp
Tags: upstream-4.2.3
Import upstream version 4.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Xfce 4 Session Manager</title><link rel="stylesheet" href="../xfce.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.68.1"><link rel="start" href="#xfce4-session" title="Xfce 4 Session Manager"><link rel="next" href="#xfsm-intro" title="Introduction"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="xfce4-session"></a>Xfce 4 Session Manager</h1></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Benedikt</span> <span class="surname">Meurer</span></h3><div class="affiliation"><div class="address"><p><code class="email">&lt;<a href="mailto:benny@xfce.org">benny@xfce.org</a>&gt;</code></p></div><span class="orgname">os-cillation<br></span><span class="orgdiv">System development<br></span><span class="jobtitle">Software developer<br></span></div></div></div></div><div><span xmlns="http://www.w3.org/TR/xhtml1/transitional" class="releaseinfo">
 
2
    <p xmlns="">�</p>
 
3
    This manual describes the <strong xmlns="" class="application"><code>xfce4-session</code></strong> package, version 4.2.0. Last updated: Jan 2005
 
4
  <br></br></span></div><div><p class="copyright">Copyright � 2003, 2004 Benedikt Meurer</p></div><div><div class="legalnotice"><a name="legalnotice"></a><p>
 
5
      This document is provided under the terms of the GNU GPL, version
 
6
      2 or (at your option) any later version.
 
7
    </p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#xfsm-intro">Introduction</a></span></dt><dt><span class="sect1"><a href="#xfce4-session-settings">Session Manager settings</a></span></dt><dd><dl><dt><span class="sect2"><a href="#xfsm-general-settings">General preferences</a></span></dt><dt><span class="sect2"><a href="#xfsm-advanced%20settings">Advanced preferences</a></span></dt></dl></dd><dt><span class="sect1"><a href="#xfsm-customize">Customizing the Session Manager</a></span></dt><dd><dl><dt><span class="sect2"><a href="#xfsm-engines">Splash screen settings</a></span></dt><dt><span class="sect2"><a href="#xfsm-shutdown">Shutdown/reboot options</a></span></dt></dl></dd><dt><span class="sect1"><a href="#xfsm-advanced">Advanced</a></span></dt><dd><dl><dt><span class="sect2"><a href="#files-and-env-vars">Files and Environment Variables</a></span></dt><dt><span class="sect2"><a href="#xfsm-kiosk-mode">Kiosk Mode</a></span></dt></dl></dd><dt><span class="sect1"><a href="#xfsm-copyright">About <strong class="application"><code>xfce4-session</code></strong></a></span></dt></dl></div><p>�</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfsm-intro"></a>Introduction</h2></div></div></div><p><strong class="application"><code>xfce4-session</code></strong> is a session manager for Xfce 4. Its task is to save the state of 
 
8
  your desktop (opened applications and their location) and restore it during a next 
 
9
  startup. You can create several different sessions and choose one of them on 
 
10
  startup.
 
11
  </p><p><strong class="application"><code>xfce4-session</code></strong> provides session management for both X11R6 and 
 
12
  legacy X11R5 protocols. If you don't need legacy session management 
 
13
  support, you can disable it at compile time, giving 
 
14
  --disable-legacy-sm to ./configure. Do <span class="emphasis"><em>NOT EVER</em></span> run <strong class="application"><code>smproxy</code></strong> in 
 
15
  session that is managed by <strong class="application"><code>xfce4-session</code></strong>, or weird things will happen. 
 
16
  The included legacy session management does everything that <strong class="application"><code>smproxy</code></strong>
 
17
  would do, and besides that, it also supports multiscreen display.</p></div><p>�</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfce4-session-settings"></a>Session Manager settings</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfsm-general-settings"></a>General preferences</h3></div></div></div><div class="figure"><a name="xfsm-general-fig"></a><p class="title"><b>Figure�1.�<code class="application">xfce4-session</code> general preferences</b></p><div class="screenshot"><div class="mediaobject"><img src="images/xfsm-general.png" alt="Shows the General tab of the xfce4-session settings dialog."></div></div></div><div class="variablelist"><dl><dt><span class="term">Display chooser on login</span></dt><dd><p>If set, the session manager will ask you to choose a session every 
 
18
            time you log in to Xfce.</p></dd><dt><span class="term">Automatically save session on logout</span></dt><dd><p>This option instructs the session manager to save the current 
 
19
          session automatically when you log out. If you don't select this option 
 
20
          you'll be prompted whether you want to save the current session on 
 
21
          each logout.</p></dd><dt><span class="term">Prompt on logout</span></dt><dd><p>This option disables the logout confirmation dialog. Whether 
 
22
          the session will be saved or not depends on whether you enabled the 
 
23
          automatic saving of sessions on logout or not.</p></dd></dl></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfsm-advanced settings"></a>Advanced preferences</h3></div></div></div><div class="figure"><a name="xfsm-advanced-fig"></a><p class="title"><b>Figure�2.�<code class="application">xfce4-session</code> advanced preferences</b></p><div class="screenshot"><div class="mediaobject"><img src="images/xfsm-advanced.png" alt="Shows Advanced tab of the xfce4-session settings dialog."></div></div></div><div class="variablelist"><dl><dt><span class="term">Launch Gnome services on startup</span></dt><dd><p>Enable this option if you need the GNOME keyring daemon to be run
 
24
          on startup. This option also instructs <strong class="application"><code>xfce4-session</code></strong> to bring up the GNOME assistive
 
25
          technologies at startup (if enabled in the GNOME control center). See the
 
26
           GNOME documentation for more information on this topic.</p></dd><dt><span class="term">Launch KDE services on startup</span></dt><dd><p>Enable this option if you plan to run KDE applications as part of 
 
27
          your Xfce Desktop session. This will notably increase the startup time, 
 
28
          but on the other hand, KDE applications will startup faster. Some KDE 
 
29
          applications may not work at all if you don't enable this option.</p></dd><dt><span class="term">Manage remote applications</span></dt><dd><p>Allow the session manager to manage applications running on 
 
30
          remote hosts. Since this option may constitute a security risk, by listening to  
 
31
          a TCP port on your system, do not enable it unless you know what you are
 
32
          doing.</p><p>System administrators may want to disable this option globally using the
 
33
          session managers <a href="#xfsm-kiosk-mode" target="_top">KIOSK
 
34
          capabilities</a>.</p></dd></dl></div></div></div><p>�</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfsm-customize"></a>Customizing the Session Manager</h2></div></div></div><p>You can customize the splash-screen that <strong class="application"><code>xfce4-session</code></strong> will use when you log in to
 
35
        Xfce 4. There is a dedicated dialog available from the <span class="emphasis"><em>Xfce 4
 
36
  Settings Manager</em></span>.</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfsm-engines"></a>Splash screen settings</h3></div></div></div><div class="figure"><a name="splash-screen-settings-fig"></a><p class="title"><b>Figure�3.�Splash screen settings dialog</b></p><div class="screenshot"><div class="mediaobject"><img src="images/xfsm-splash.png" alt="Shows the xfce4-session splash screen settings dialog."></div></div></div><p>On the left, the dialog shows a list of all installed engines.
 
37
    Select an engine, and you will see, if available, a preview and
 
38
    information about it. You can click on the <span><strong class="guibutton">Test</strong></span>
 
39
    button to see a demonstration of the selected splash screen
 
40
    engine.</p><p><strong class="application"><code>xfce4-session</code></strong> provides three Splash themes engines by default. Their
 
41
    respective configuration options - if any - are available from the
 
42
    <span><strong class="guibutton">Configure</strong></span> button.</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfsm-shutdown"></a>Shutdown/reboot options</h3></div></div></div><p><strong class="application"><code>xfce4-session</code></strong> supports shutting down your computer when you log out
 
43
    of your desktop session. To be able to shutdown the computer, you
 
44
    have to be listed in the systems <code class="filename">sudoers</code> file,
 
45
    in particular, you must be allowed to execute the command
 
46
    <code class="filename">${libexecdir}/xfsm-shutdown-helper</code>
 
47
    (<code class="filename">/usr/sbin/xfsm-shutdown-helper</code> on Debian GNU/Linux)
 
48
    as user root (where <code class="filename">${libexecdir}</code> is the <code class="filename">libexec</code> sub directory in the prefix you
 
49
    installed <strong class="application"><code>xfce4-session</code></strong>, for example
 
50
    <code class="filename">/usr/local/libexec</code>).</p><p>For example, lets say, you installed <strong class="application"><code>xfce4-session</code></strong> into <code class="filename">/usr/local</code>, your hostname is <span class="emphasis"><em>myhost</em></span>
 
51
    and your user account is named <span class="emphasis"><em>myuser</em></span>, then you
 
52
    would have to add the following line to your <code class="filename">sudoers</code>
 
53
    file (remember to use <strong class="application"><code>visudo</code></strong> to edit
 
54
    that file):</p><pre class="programlisting">
 
55
myuser myhost=/usr/local/libexec/xfsm-shutdown-helper
 
56
</pre></div></div><p>�</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfsm-advanced"></a>Advanced</h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="files-and-env-vars"></a>Files and Environment Variables</h3></div></div></div><p>Xfce now uses the Basedir Specification as defined on <a href="http://freedesktop.org/" target="_top">Freedesktop.org</a> to
 
57
    locate its data and configuration files. This means that file locations
 
58
    will be specified as a path relative to the directories described in
 
59
    the specification.</p><div class="variablelist"><dl><dt><span class="term">${XDG_CONFIG_HOME}</span></dt><dd><p>The first base directory to look for configuration 
 
60
          files. By default this is set to <code class="filename">~/.config/</code>.</p></dd><dt><span class="term">${XDG_CONFIG_DIRS}</span></dt><dd><p>A list of system directories that contain configuration
 
61
          data. By default the panel will look in <code class="filename">${sysconfdir}/xdg/</code> and 
 
62
          <code class="filename">/etc/xdg/</code>. The value of
 
63
          ${sysconfdir} depends on how the program was build and will often be
 
64
          <code class="filename">/etc/</code> for binary
 
65
          packages.</p></dd><dt><span class="term">${XDG_CACHE_HOME}</span></dt><dd><p>Specifies the root for all user-specific cache data. If
 
66
          this environment variable is unset, it defaults to <code class="filename">~/.cache</code>.</p></dd><dt><span class="term">${XDG_CONFIG_DIRS}/xfce4-session/xfce4-session.rc</span></dt><dd><p>This is the location of the configuration file that
 
67
          includes the various settings for <strong class="application"><code>xfce4-session</code></strong>, which can be changed
 
68
          from the settings dialog.</p></dd><dt><span class="term">${XDG_CONFIG_DIRS}/xfce4-session/xfce4-splash.rc</span></dt><dd><p>This is the location of the configuration file that
 
69
          includes the configuration for the splash screen, which
 
70
          can be changed from the settings dialog.</p></dd><dt><span class="term">${XDG_CACHE_HOME}/sessions/</span></dt><dd><p>The directory where <strong class="application"><code>xfce4-session</code></strong> and <strong class="application"><code>xfwm4</code></strong>
 
71
          store the session data to.</p></dd><dt><span class="term">${sysconfdir}/xdg/xfce4/kiosk/kioskrc</span></dt><dd><p>Kiosk mode configuration file. See <a href="#xfsm-kiosk-mode" target="_top">next
 
72
          section</a> for an explanation.</p></dd></dl></div><p>None of the configuration files, except the <code class="filename">kioskrc</code>,
 
73
    are designed to be edited by hand during a Xfce session; in fact, the changes will
 
74
    be overwritten if you edit them while the session manager or the settings managers
 
75
    are running.</p><p>System administrators might want to customize the file
 
76
    <code class="filename">${sysconfdir}/xdg/xfce4-session/xfce4-session.rc</code> to change
 
77
    the default applications that are run on Xfce startup. For example, if you want to
 
78
    start the <strong class="application"><code>xfce4-iconbox</code></strong> instead of the 
 
79
    <strong class="application"><code>xftaskbar4</code></strong>, you would change the <span class="emphasis"><em>[Failsafe
 
80
    Session]</em></span> section like to something like this:</p><pre class="programlisting">
 
81
[Failsafe Session]
 
82
Count=4
 
83
Client0_Command=xfwm4
 
84
Client0_PerScreen=False
 
85
Client1_Command=xfce4-panel
 
86
Client1_PerScreen=True
 
87
Client2_Command=xfce4-iconbox
 
88
Client2_PerScreen=True
 
89
Client3_Command=xfdesktop
 
90
Client3_PerScreen=False
 
91
</pre></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xfsm-kiosk-mode"></a>Kiosk Mode</h3></div></div></div><p>The session manager offers support for the Kiosk Mode, that helps to
 
92
    prevent users from making changes to their session settings. To use it you
 
93
    have to edit or create the file
 
94
    <code class="filename">${sysconfdir}/xdg/xfce4/kiosk/kioskrc</code>.</p><p>The way to explain the format of this file is by using an example. The
 
95
    xfce4-session section of your <code class="filename">kioskrc</code> might look like
 
96
    this:</p><pre class="programlisting">
 
97
[xfce4-session]
 
98
CustomizeSplash=ALL
 
99
CustomizeChooser=ALL
 
100
CustomizeLogout=ALL
 
101
CustomizeCompatibility=%wheel
 
102
Shutdown=%wheel
 
103
CustomizeSecurity=NONE
 
104
</pre><p>This allows all users to change their splash, chooser and logout settings,
 
105
    but allows only users in the group <span class="emphasis"><em>wheel</em></span> to customize the 
 
106
    compatibility settings and shutdown the system. No one will be allowed to adjust
 
107
    the security settings.</p><p>The session manager supports the following KIOSK capabilities:</p><div class="variablelist"><dl><dt><span class="term">CustomizeSplash</span></dt><dd><p>Whether or not the user is allowed to customize the splash screen.</p></dd><dt><span class="term">CustomizeChooser</span></dt><dd><p>Whether or not the user is allowed to customize the session chooser settings.</p></dd><dt><span class="term">CustomizeLogout</span></dt><dd><p>Whether or not the user is allowed to customize the logout settings.</p></dd><dt><span class="term">CustomizeCompatibility</span></dt><dd><p>Whether or not the user is allowed to customize the compatibility
 
108
          settings (KDE/Gnome compat)</p></dd><dt><span class="term">CustomizeSecurity</span></dt><dd><p>Whether or not the user is allowed to customize the security settings.
 
109
          This is one of the most <span class="emphasis"><em>IMPORTANT</em></span> settings, since it
 
110
          prevents users (actually <code class="filename">libICE</code>) from binding to a TCP port.</p></dd><dt><span class="term">Shutdown</span></dt><dd><p>Whether or not the user is allowed to shutdown (reboot or poweroff) the system.
 
111
          If a user lacks this capability the reboot and poweroff options in the shutdown
 
112
          dialog will be greyed out.</p></dd></dl></div></div></div><p>�</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xfsm-copyright"></a>About <strong class="application"><code>xfce4-session</code></strong></h2></div></div></div><p><strong class="application"><code>xfce4-session</code></strong> was written by Benedikt Meurer 
 
113
  (<code class="email">&lt;<a href="mailto:benny@xfce.org">benny@xfce.org</a>&gt;</code>).
 
114
    To find more information, please visit the 
 
115
    <a href="http://www.xfce.org" target="_top">Xfce web site</a>. 
 
116
  </p><p>To report a bug or make a suggestion regarding this application or
 
117
    this manual, use the bug tracking system at <a href="http://bugzilla.xfce.org/" target="_top">http://bugzilla.xfce.org/</a>. 
 
118
  </p><p>If you have questions about the use or installation of this package,
 
119
    please ask on the <a href="http://lunar-linux.org/mailman/listinfo/xfce" target="_top">xfce</a> mailing list. Development discussion takes
 
120
    place on the <a href="http://lunar-linux.org/mailman/listinfo/xfce4-dev" target="_top">xfce4-dev</a> mailing list.
 
121
  </p><p> This program is distributed under the terms of the
 
122
    GNU General Public License as published by the Free Software Foundation; 
 
123
    either version 2 of the License, or (at your option) any later version.
 
124
  </p><p>You should have received a copy of the GNU General Public License 
 
125
    along with this program; if not, write to the Free Software 
 
126
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
 
127
    USA.
 
128
  </p></div></div></body></html>