Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 9822177520ff572b8352595de4e3a4fb > files > 20

xfce4-session-4.6.1-1mdv2010.0.i586.rpm

<?xml version='1.0'?> 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
          "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
  <!ENTITY date "July 2005"> 
  <!ENTITY appversion "4.3">
  <!ENTITY app "<application>xfce4-session</application>"> 
]>

<article id="xfce4-session" lang="en">

<!-- Header --> 
<articleinfo>

  <title>Xfce 4 Session Manager</title>
  
  <copyright>
    <year>2003</year>
    <year>2004</year>
    <year>2005</year>
    <holder>Benedikt Meurer</holder>
  </copyright>

<!-- translators: uncomment this:

  <copyright>
   <year>2002</year> <holder>ME-THE-TRANSLATOR (Latin
   translation)</holder>
  </copyright>

 -->

  <legalnotice id="legalnotice">
    <para>
      Permission is granted to copy, distribute and/or modify this document
      under the terms of the GNU Free Documentation License, Version 1.1 or
      any later version published by the Free Software Foundation; with no
      Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
      Texts. The complete license text is available from the <ulink
      type="http" url="http://www.gnu.org/">Free Software Foundation</ulink>.
    </para>
  </legalnotice>
  
  <authorgroup>
    <author>
      <firstname>Benedikt</firstname>
      <surname>Meurer</surname>
      <affiliation>
	      <address><email>benny@xfce.org</email></address>
        <orgname>os-cillation</orgname>
        <orgdiv>System development</orgdiv>
        <jobtitle>Software developer</jobtitle>
      </affiliation>
    </author>

<!-- This is appropriate place for other contributors: translators,
maintainers, etc. Commented out by default.

    <othercredit role="translator">
      <firstname>Latin</firstname> <surname>Translator 1</surname>
      <affiliation>
	<orgname>Latin Translation Team</orgname>
	<address><email>translator@gnome.org</email> </address>
      </affiliation> <contrib>Latin translation</contrib>
    </othercredit>
-->

  </authorgroup>

  <releaseinfo>
    This manual describes the &app; package, version &appversion;.
  </releaseinfo>

  <pubdate>&date;</pubdate>

</articleinfo>

<sect1 id="xfsm-intro">
  <title>Introduction</title>

  <para>&app; is a session manager for Xfce 4. 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.
  </para>
  
  <para>&app; provides session management for both X11R6 and 
  legacy X11R5 protocols. If you don't need legacy session management 
  support, you can disable it at compile time, giving 
  --disable-legacy-sm to ./configure. Do <emphasis>NOT EVER</emphasis> run <application>smproxy</application> in 
  session that is managed by &app;, or weird things will happen. 
  The included legacy session management does everything that <application>smproxy</application>
  would do, and besides that, it also supports multiscreen display.</para>

</sect1>

<sect1 id="xfce4-session-settings">
  <title>Session Manager settings</title>
    
  <sect2 id="xfsm-general-settings">
  	<title>General preferences</title>
  	
    <figure id="xfsm-general-fig">
      <title>&app; general preferences</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/xfsm-general.png" format="PNG" />
          </imageobject>

          <textobject>
            <phrase>Shows the General tab of the &app; settings dialog.</phrase>
          </textobject>
        </mediaobject>
      </screenshot>
    </figure>
  	
  	<variablelist>
      <varlistentry>
        <term>Display chooser on login</term> 
        <listitem>
            <para>If set, the session manager will ask you to choose a session every 
            time you log in to Xfce.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Automatically save session on logout</term> 
        <listitem>
          <para>This option instructs the session manager to save the current 
          session automatically when you log out. If you don't select this option 
          you'll be prompted whether you want to save the current session on 
          each logout.</para>
        </listitem>
      </varlistentry>
      
      <varlistentry>
        <term>Prompt on logout</term> 
        <listitem>
          <para>This option disables the logout confirmation dialog. Whether 
          the session will be saved or not depends on whether you enabled the 
          automatic saving of sessions on logout or not.</para>
        </listitem>
      </varlistentry>
    </variablelist>
	</sect2>
		
	<sect2 id="xfsm-advanced settings">
	  <title>Advanced preferences</title>
	
    <figure id="xfsm-advanced-fig">
      <title>&app; advanced preferences</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/xfsm-advanced.png" format="PNG" />
          </imageobject>

          <textobject>
            <phrase>Shows Advanced tab of the &app; settings dialog.</phrase>
          </textobject>
        </mediaobject>
      </screenshot>
    </figure>
	
    <variablelist>
      <varlistentry>
        <term>Launch Gnome services on startup</term> 
        <listitem>
          <para>Enable this option if you need the GNOME keyring daemon to be run
          on startup. This option also instructs &app; to bring up the GNOME assistive
          technologies at startup (if enabled in the GNOME control center). See the
           GNOME documentation for more information on this topic.</para>
        </listitem>
		  </varlistentry>

      <varlistentry>
        <term>Launch KDE services on startup</term> 
        <listitem>
          <para>Enable this option if you plan to run KDE applications as part of 
          your Xfce Desktop session. This will notably increase the startup time, 
          but on the other hand, KDE applications will startup faster. Some KDE 
          applications may not work at all if you don't enable this option.</para>
        </listitem>
  		</varlistentry>

      <varlistentry>
        <term>Manage remote applications</term> 
        <listitem>
          <para>Allow the session manager to manage applications running on 
          remote hosts. Since this option may constitute a security risk, by listening to  
          a TCP port on your system, do not enable it unless you know what you are
          doing.</para>
          <para>System administrators may want to disable this option globally using the
          session managers <ulink url="#xfsm-kiosk-mode" type="html">KIOSK
          capabilities</ulink>.</para>
        </listitem>
      </varlistentry>
    </variablelist>
	
	</sect2>
</sect1>
    
<sect1 id="xfsm-customize">
	<title>Customizing the Session Manager</title>
	
	<para>You can customize the splash-screen that &app; will use when you log in to
	Xfce 4. There is a dedicated dialog available from the <emphasis>Xfce 4
  Settings Manager</emphasis>.</para>
	
	<sect2 id="xfsm-engines">
		<title>Splash screen settings</title>
		
    <figure id="splash-screen-settings-fig">
      <title>Splash screen settings dialog</title>
      <screenshot>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/xfsm-splash.png" format="PNG" />
          </imageobject>

          <textobject>
            <phrase>Shows the &app; splash screen settings dialog.</phrase>
          </textobject>
        </mediaobject>
      </screenshot>
    </figure>
		
    <para>On the left, the dialog shows a list of all installed engines.
    Select an engine, and you will see, if available, a preview and
    information about it. You can click on the <guibutton>Test</guibutton>
    button to see a demonstration of the selected splash screen
    engine.</para>
				
    <para>&app; provides three Splash themes engines by default. Their
    respective configuration options - if any - are available from the
    <guibutton>Configure</guibutton> button.</para>
	</sect2>
	
	<sect2 id="xfsm-shutdown">
		<title>Shutdown/reboot options</title>
	
    <para>&app; supports shutting down your computer when you log out
    of your desktop session. To be able to shutdown the computer, you
    have to be listed in the systems <filename>sudoers</filename> file,
    in particular, you must be allowed to execute the command
    <filename>${libexecdir}/xfsm-shutdown-helper</filename>
    (<filename>/usr/sbin/xfsm-shutdown-helper</filename> on Debian GNU/Linux)
    as user root (where <filename>${libexecdir}</filename> is the <filename
    role="directory">libexec</filename> sub directory in the prefix you
    installed &app;, for example
    <filename role="directory">/usr/local/libexec</filename>).</para>

    <para>For example, lets say, you installed &app; into <filename
    role="directory">/usr/local</filename>, your hostname is <emphasis>myhost</emphasis>
    and your user account is named <emphasis>myuser</emphasis>, then you
    would have to add the following line to your <filename>sudoers</filename>
    file (remember to use <application>visudo</application> to edit
    that file):</para>

<programlisting>
myuser myhost=/usr/local/libexec/xfsm-shutdown-helper
</programlisting>
	</sect2>
	
</sect1>
 
<sect1 id="xfsm-advanced">
  <title>Advanced</title>

  <sect2 id="files-and-env-vars">
    <title>Files and Environment Variables</title>

    <para>Xfce now uses the Basedir Specification as defined on <ulink
    url="http://freedesktop.org/" type="http">Freedesktop.org</ulink> to
    locate its data and configuration files. This means that file locations
    will be specified as a path relative to the directories described in
    the specification.</para>

    <variablelist>
      <varlistentry>
        <term>${XDG_CONFIG_HOME}</term>
        <listitem>
          <para>The first base directory to look for configuration 
          files. By default this is set to <filename
          role="directory">~/.config/</filename>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>${XDG_CONFIG_DIRS}</term>
        <listitem>
          <para>A list of system directories that contain configuration
          data. By default the panel will look in <filename 
          role="directory">${sysconfdir}/xdg/</filename> and 
          <filename role="directory">/etc/xdg/</filename>. The value of
          ${sysconfdir} depends on how the program was build and will often be
          <filename role="directory">/etc/</filename> for binary
          packages.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>${XDG_CACHE_HOME}</term>
        <listitem>
          <para>Specifies the root for all user-specific cache data. If
          this environment variable is unset, it defaults to <filename
          role="directory">~/.cache</filename>.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>${XDG_CONFIG_DIRS}/autostart/</term>
        <listitem>
          <para>This is the location where the list of applications that
          should be automatically run on login is stored. Each autostarted
          application is represented by a <filename>.desktop</filename>
          file (see the <ulink type="http"
          url="http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html">Desktop
          Entry Specification</ulink> for details).</para>
          <para>Prior to Xfce 4.3, the list of autostarted applications
          was stored in <filename role="directory">~/Desktop/Autostart</filename>,
          which contained scripts and symbolic links to applications. If
          you run &app; &appversion; or above for the first time, it will
          automatically migrate the autostart items from the old location
          to the standard location and place a <filename>LOCATION-CHANGED.txt</filename>
          file in the old directory, that describes the location change.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-session.rc</term>
        <listitem>
          <para>This is the location of the configuration file that
          includes the various settings for &app;, which can be changed
          from the settings dialog.</para>
        </listitem>
      </varlistentry>
    
      <varlistentry>
        <term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-splash.rc</term>
        <listitem>
          <para>This is the location of the configuration file that
          includes the configuration for the splash screen, which
          can be changed from the settings dialog.</para>
        </listitem>
      </varlistentry>
    
      <varlistentry>
        <term>${XDG_CACHE_HOME}/sessions/</term>
        <listitem>
          <para>The directory where &app; and <application>xfwm4</application>
          store the session data to.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</term>
        <listitem>
          <para>Kiosk mode configuration file. See <ulink url="#xfsm-kiosk-mode">next
          section</ulink> for an explanation.</para>
        </listitem>
      </varlistentry>
    </variablelist>

    <para>None of the configuration files, except the <filename>kioskrc</filename>,
    are designed to be edited by hand during a Xfce session; in fact, the changes will
    be overwritten if you edit them while the session manager or the settings managers
    are running.</para>

    <para>System administrators might want to customize the file
    <filename>${sysconfdir}/xdg/xfce4-session/xfce4-session.rc</filename> to change
    the default applications that are run on Xfce startup. For example, if you want to
    start the <application>xfce4-iconbox</application> instead of the 
    <application>xftaskbar4</application>, you would change the <emphasis>[Failsafe
    Session]</emphasis> section like to something like this:</para>

<programlisting>
[Failsafe Session]
Count=4
Client0_Command=xfwm4
Client0_PerScreen=False
Client1_Command=xfce4-panel
Client1_PerScreen=True
Client2_Command=xfce4-iconbox
Client2_PerScreen=True
Client3_Command=xfdesktop
Client3_PerScreen=False
</programlisting>
  </sect2>

  <sect2 id="xfsm-kiosk-mode">
    <title>Kiosk Mode</title>

    <para>The session manager offers support for the Kiosk Mode, that helps to
    prevent users from making changes to their session settings. To use it you
    have to edit or create the file
    <filename>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</filename>.</para>

    <para>The way to explain the format of this file is by using an example. The
    xfce4-session section of your <filename>kioskrc</filename> might look like
    this:</para>

<programlisting>
[xfce4-session]
CustomizeSplash=ALL
CustomizeChooser=ALL
CustomizeLogout=ALL
CustomizeCompatibility=%wheel
Shutdown=%wheel
CustomizeSecurity=NONE
</programlisting>

    <para>This allows all users to change their splash, chooser and logout settings,
    but allows only users in the group <emphasis>wheel</emphasis> to customize the 
    compatibility settings and shutdown the system. No one will be allowed to adjust
    the security settings.</para>

    <para>The session manager supports the following KIOSK capabilities:</para>

    <variablelist>
      <varlistentry>
        <term>CustomizeSplash</term>
        <listitem>
          <para>Whether or not the user is allowed to customize the splash screen.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>CustomizeChooser</term>
        <listitem>
          <para>Whether or not the user is allowed to customize the session chooser settings.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>CustomizeLogout</term>
        <listitem>
          <para>Whether or not the user is allowed to customize the logout settings.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>CustomizeCompatibility</term>
        <listitem>
          <para>Whether or not the user is allowed to customize the compatibility
          settings (KDE/Gnome compat)</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>CustomizeSecurity</term>
        <listitem>
          <para>Whether or not the user is allowed to customize the security settings.
          This is one of the most <emphasis>IMPORTANT</emphasis> settings, since it
          prevents users (actually <filename>libICE</filename>) from binding to a TCP port.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term>Shutdown</term>
        <listitem>
          <para>Whether or not the user is allowed to shutdown (reboot or poweroff) the system.
          If a user lacks this capability the reboot and poweroff options in the shutdown
          dialog will be greyed out.</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </sect2>
</sect1>

<sect1 id="xfsm-copyright">
  <title>About &app;</title>

  <para>&app; was written by Benedikt Meurer 
  (<email>benny@xfce.org</email>).
    To find more information, please visit the 
    <ulink url="http://www.xfce.org" type="http">Xfce web site</ulink>. 
  </para>

  <para>To report a bug or make a suggestion regarding this application or
    this manual, use the bug tracking system at <ulink 
      url="http://bugzilla.xfce.org/" 
      type="http">http://bugzilla.xfce.org/</ulink>. 
  </para>

  <para>If you have questions about the use or installation of this package,
    please ask on the <ulink 
      url="http://lunar-linux.org/mailman/listinfo/xfce"
      type="http">xfce</ulink> mailing list. Development discussion takes
    place on the <ulink 
      url="http://lunar-linux.org/mailman/listinfo/xfce4-dev"
      type="http">xfce4-dev</ulink> mailing list.
  </para>
    
  <para> This program is distributed under the terms of the
    GNU General Public License as published by the Free Software Foundation; 
    either version 2 of the License, or (at your option) any later version.
  </para>

  <para>You should have received a copy of the GNU General Public License 
    along with this program; if not, write to the Free Software 
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 
    USA.
  </para>

</sect1>

</article>