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

« back to all changes in this revision

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

  • 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
<?xml version='1.0'?> 
 
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>"> 
 
7
]>
 
8
 
 
9
<article id="xfce4-session" lang="en">
 
10
 
 
11
<!-- Header --> 
 
12
<articleinfo>
 
13
 
 
14
  <title>Xfce 4 Session Manager</title>
 
15
  
 
16
  <copyright>
 
17
    <year>2003</year>
 
18
    <year>2004</year>
 
19
    <holder>Benedikt Meurer</holder>
 
20
  </copyright>
 
21
 
 
22
<!-- translators: uncomment this:
 
23
 
 
24
  <copyright>
 
25
   <year>2002</year> <holder>ME-THE-TRANSLATOR (Latin
 
26
   translation)</holder>
 
27
  </copyright>
 
28
 
 
29
 -->
 
30
 
 
31
  <legalnotice id="legalnotice">
 
32
    <para>
 
33
      This document is provided under the terms of the GNU GPL, version
 
34
      2 or (at your option) any later version.
 
35
    </para>
 
36
  </legalnotice>
 
37
  
 
38
  <authorgroup>
 
39
    <author>
 
40
      <firstname>Benedikt</firstname>
 
41
      <surname>Meurer</surname>
 
42
      <affiliation>
 
43
              <address><email>benny@xfce.org</email></address>
 
44
        <orgname>os-cillation</orgname>
 
45
        <orgdiv>System development</orgdiv>
 
46
        <jobtitle>Software developer</jobtitle>
 
47
      </affiliation>
 
48
    </author>
 
49
 
 
50
<!-- This is appropriate place for other contributors: translators,
 
51
maintainers, etc. Commented out by default.
 
52
 
 
53
    <othercredit role="translator">
 
54
      <firstname>Latin</firstname> <surname>Translator 1</surname>
 
55
      <affiliation>
 
56
        <orgname>Latin Translation Team</orgname>
 
57
        <address><email>translator@gnome.org</email> </address>
 
58
      </affiliation> <contrib>Latin translation</contrib>
 
59
    </othercredit>
 
60
-->
 
61
 
 
62
  </authorgroup>
 
63
 
 
64
  <releaseinfo>
 
65
    <para>&nbsp;</para>
 
66
    This manual describes the &app; package, version &appversion;. Last updated: &date;
 
67
  </releaseinfo>
 
68
 
 
69
</articleinfo>
 
70
 
 
71
<para>&nbsp;</para>
 
72
 
 
73
<sect1 id="xfsm-intro">
 
74
  <title>Introduction</title>
 
75
 
 
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 
 
79
  startup.
 
80
  </para>
 
81
  
 
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>
 
89
 
 
90
</sect1>
 
91
 
 
92
<para>&nbsp;</para>
 
93
 
 
94
<sect1 id="xfce4-session-settings">
 
95
  <title>Session Manager settings</title>
 
96
    
 
97
  <sect2 id="xfsm-general-settings">
 
98
        <title>General preferences</title>
 
99
        
 
100
    <figure id="xfsm-general-fig">
 
101
      <title>&app; general preferences</title>
 
102
      <screenshot>
 
103
        <mediaobject>
 
104
          <imageobject>
 
105
            <imagedata fileref="images/xfsm-general.png" format="PNG" />
 
106
          </imageobject>
 
107
 
 
108
          <textobject>
 
109
            <phrase>Shows the General tab of the &app; settings dialog.</phrase>
 
110
          </textobject>
 
111
        </mediaobject>
 
112
      </screenshot>
 
113
    </figure>
 
114
        
 
115
        <variablelist>
 
116
      <varlistentry>
 
117
        <term>Display chooser on login</term> 
 
118
        <listitem>
 
119
            <para>If set, the session manager will ask you to choose a session every 
 
120
            time you log in to Xfce.</para>
 
121
        </listitem>
 
122
      </varlistentry>
 
123
 
 
124
      <varlistentry>
 
125
        <term>Automatically save session on logout</term> 
 
126
        <listitem>
 
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 
 
130
          each logout.</para>
 
131
        </listitem>
 
132
      </varlistentry>
 
133
      
 
134
      <varlistentry>
 
135
        <term>Prompt on logout</term> 
 
136
        <listitem>
 
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>
 
140
        </listitem>
 
141
      </varlistentry>
 
142
    </variablelist>
 
143
        </sect2>
 
144
                
 
145
        <sect2 id="xfsm-advanced settings">
 
146
          <title>Advanced preferences</title>
 
147
        
 
148
    <figure id="xfsm-advanced-fig">
 
149
      <title>&app; advanced preferences</title>
 
150
      <screenshot>
 
151
        <mediaobject>
 
152
          <imageobject>
 
153
            <imagedata fileref="images/xfsm-advanced.png" format="PNG" />
 
154
          </imageobject>
 
155
 
 
156
          <textobject>
 
157
            <phrase>Shows Advanced tab of the &app; settings dialog.</phrase>
 
158
          </textobject>
 
159
        </mediaobject>
 
160
      </screenshot>
 
161
    </figure>
 
162
        
 
163
    <variablelist>
 
164
      <varlistentry>
 
165
        <term>Launch Gnome services on startup</term> 
 
166
        <listitem>
 
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>
 
171
        </listitem>
 
172
                  </varlistentry>
 
173
 
 
174
      <varlistentry>
 
175
        <term>Launch KDE services on startup</term> 
 
176
        <listitem>
 
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>
 
181
        </listitem>
 
182
                </varlistentry>
 
183
 
 
184
      <varlistentry>
 
185
        <term>Manage remote applications</term> 
 
186
        <listitem>
 
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
 
190
          doing.</para>
 
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>
 
194
        </listitem>
 
195
      </varlistentry>
 
196
    </variablelist>
 
197
        
 
198
        </sect2>
 
199
</sect1>
 
200
    
 
201
<para>&nbsp;</para>
 
202
 
 
203
<sect1 id="xfsm-customize">
 
204
        <title>Customizing the Session Manager</title>
 
205
        
 
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>
 
209
        
 
210
        <sect2 id="xfsm-engines">
 
211
                <title>Splash screen settings</title>
 
212
                
 
213
    <figure id="splash-screen-settings-fig">
 
214
      <title>Splash screen settings dialog</title>
 
215
      <screenshot>
 
216
        <mediaobject>
 
217
          <imageobject>
 
218
            <imagedata fileref="images/xfsm-splash.png" format="PNG" />
 
219
          </imageobject>
 
220
 
 
221
          <textobject>
 
222
            <phrase>Shows the &app; splash screen settings dialog.</phrase>
 
223
          </textobject>
 
224
        </mediaobject>
 
225
      </screenshot>
 
226
    </figure>
 
227
                
 
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
 
232
    engine.</para>
 
233
                                
 
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>
 
237
        </sect2>
 
238
        
 
239
        <sect2 id="xfsm-shutdown">
 
240
                <title>Shutdown/reboot options</title>
 
241
        
 
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>
 
252
 
 
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
 
258
    that file):</para>
 
259
 
 
260
<programlisting>
 
261
myuser myhost=/usr/local/libexec/xfsm-shutdown-helper
 
262
</programlisting>
 
263
        </sect2>
 
264
        
 
265
</sect1>
 
266
 
 
267
<para>&nbsp;</para>
 
268
 
 
269
<sect1 id="xfsm-advanced">
 
270
  <title>Advanced</title>
 
271
 
 
272
  <sect2 id="files-and-env-vars">
 
273
    <title>Files and Environment Variables</title>
 
274
 
 
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>
 
280
 
 
281
    <variablelist>
 
282
      <varlistentry>
 
283
        <term>${XDG_CONFIG_HOME}</term>
 
284
        <listitem>
 
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>
 
288
        </listitem>
 
289
      </varlistentry>
 
290
 
 
291
      <varlistentry>
 
292
        <term>${XDG_CONFIG_DIRS}</term>
 
293
        <listitem>
 
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
 
300
          packages.</para>
 
301
        </listitem>
 
302
      </varlistentry>
 
303
 
 
304
      <varlistentry>
 
305
        <term>${XDG_CACHE_HOME}</term>
 
306
        <listitem>
 
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>
 
310
        </listitem>
 
311
      </varlistentry>
 
312
 
 
313
      <varlistentry>
 
314
        <term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-session.rc</term>
 
315
        <listitem>
 
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>
 
319
        </listitem>
 
320
      </varlistentry>
 
321
    
 
322
      <varlistentry>
 
323
        <term>${XDG_CONFIG_DIRS}/xfce4-session/xfce4-splash.rc</term>
 
324
        <listitem>
 
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>
 
328
        </listitem>
 
329
      </varlistentry>
 
330
    
 
331
      <varlistentry>
 
332
        <term>${XDG_CACHE_HOME}/sessions/</term>
 
333
        <listitem>
 
334
          <para>The directory where &app; and <application>xfwm4</application>
 
335
          store the session data to.</para>
 
336
        </listitem>
 
337
      </varlistentry>
 
338
 
 
339
      <varlistentry>
 
340
        <term>${sysconfdir}/xdg/xfce4/kiosk/kioskrc</term>
 
341
        <listitem>
 
342
          <para>Kiosk mode configuration file. See <ulink url="#xfsm-kiosk-mode">next
 
343
          section</ulink> for an explanation.</para>
 
344
        </listitem>
 
345
      </varlistentry>
 
346
    </variablelist>
 
347
 
 
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
 
351
    are running.</para>
 
352
 
 
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>
 
359
 
 
360
<programlisting>
 
361
[Failsafe Session]
 
362
Count=4
 
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
 
371
</programlisting>
 
372
  </sect2>
 
373
 
 
374
  <sect2 id="xfsm-kiosk-mode">
 
375
    <title>Kiosk Mode</title>
 
376
 
 
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>
 
381
 
 
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
 
384
    this:</para>
 
385
 
 
386
<programlisting>
 
387
[xfce4-session]
 
388
CustomizeSplash=ALL
 
389
CustomizeChooser=ALL
 
390
CustomizeLogout=ALL
 
391
CustomizeCompatibility=%wheel
 
392
Shutdown=%wheel
 
393
CustomizeSecurity=NONE
 
394
</programlisting>
 
395
 
 
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>
 
400
 
 
401
    <para>The session manager supports the following KIOSK capabilities:</para>
 
402
 
 
403
    <variablelist>
 
404
      <varlistentry>
 
405
        <term>CustomizeSplash</term>
 
406
        <listitem>
 
407
          <para>Whether or not the user is allowed to customize the splash screen.</para>
 
408
        </listitem>
 
409
      </varlistentry>
 
410
 
 
411
      <varlistentry>
 
412
        <term>CustomizeChooser</term>
 
413
        <listitem>
 
414
          <para>Whether or not the user is allowed to customize the session chooser settings.</para>
 
415
        </listitem>
 
416
      </varlistentry>
 
417
 
 
418
      <varlistentry>
 
419
        <term>CustomizeLogout</term>
 
420
        <listitem>
 
421
          <para>Whether or not the user is allowed to customize the logout settings.</para>
 
422
        </listitem>
 
423
      </varlistentry>
 
424
 
 
425
      <varlistentry>
 
426
        <term>CustomizeCompatibility</term>
 
427
        <listitem>
 
428
          <para>Whether or not the user is allowed to customize the compatibility
 
429
          settings (KDE/Gnome compat)</para>
 
430
        </listitem>
 
431
      </varlistentry>
 
432
 
 
433
      <varlistentry>
 
434
        <term>CustomizeSecurity</term>
 
435
        <listitem>
 
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>
 
439
        </listitem>
 
440
      </varlistentry>
 
441
 
 
442
      <varlistentry>
 
443
        <term>Shutdown</term>
 
444
        <listitem>
 
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>
 
448
        </listitem>
 
449
      </varlistentry>
 
450
    </variablelist>
 
451
  </sect2>
 
452
</sect1>
 
453
 
 
454
<para>&nbsp;</para>
 
455
 
 
456
<sect1 id="xfsm-copyright">
 
457
  <title>About &app;</title>
 
458
 
 
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>. 
 
463
  </para>
 
464
 
 
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>. 
 
469
  </para>
 
470
 
 
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
 
475
    place on the <ulink 
 
476
      url="http://lunar-linux.org/mailman/listinfo/xfce4-dev"
 
477
      type="http">xfce4-dev</ulink> mailing list.
 
478
  </para>
 
479
    
 
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.
 
483
  </para>
 
484
 
 
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, 
 
488
    USA.
 
489
  </para>
 
490
 
 
491
</sect1>
 
492
 
 
493
</article>
 
494