~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/session.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-10-12 23:14:14 UTC
  • mto: (15.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20061012231414-y2oqbom5dy389os0
Tags: upstream-4.2.0
ImportĀ upstreamĀ versionĀ 4.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /tmp/qt-4.1.4-harald-1150713676011/qt-x11-opensource-src-4.1.4/doc/src/session.qdoc -->
6
 
<!-- /tmp/qt-4.1.4-harald-1150713676011/qt-x11-opensource-src-4.1.4/doc/src/session.qdoc -->
 
5
<!-- /tmp/qt-4.2.0-qt-1159540607313/qt-x11-opensource-src-4.2.0/doc/src/session.qdoc -->
7
6
<head>
8
 
    <title>Qt 4.1: Session Management</title>
9
 
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
10
 
a:link { color: #004faf; text-decoration: none }
11
 
a:visited { color: #672967; text-decoration: none }
12
 
td.postheader { font-family: sans-serif }
13
 
tr.address { font-family: sans-serif }
14
 
body { background: #ffffff; color: black; }</style>
 
7
  <title>Qt 4.2: Session Management</title>
 
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
15
9
</head>
16
10
<body>
17
11
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
12
<tr>
19
 
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
13
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
20
14
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
21
 
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Session Management<br /><small></small></h1>
 
15
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Session Management<br /><small></small></h1>
22
16
<p>A <i>session</i> is a group of running applications, each of which has a particular state. The session is controlled by a service called the <i>session</i> <i>manager</i>. The applications participating in the session are called <i>session clients</i>.</p>
23
17
<p>The session manager issues commands to its clients on behalf of the user. These commands may cause clients to commit unsaved changes (for example by saving open files), to preserve their state for future sessions, or to terminate gracefully. The set of these operations is called <i>session</i> <i>management</i>.</p>
24
18
<p>In the common case, a session consists of all applications that a user runs on their desktop at a time. Under Unix/X11, however, a session may include applications running on different computers and may span multiple displays.</p>
42
36
<p>On Unix you can either use a desktop environment that supports standard X11R6 session management or, the recommended method, use the session manager reference implementation provided by the X Consortium. This sample manager is called <tt>xsm</tt> and is part of a standard X11R6 installation. As always with X11, a useful and informative manual page is provided. Using <tt>xsm</tt> is straightforward (apart from the clumsy Athena-based user interface). Here's a simple approach:</p>
43
37
<ul>
44
38
<li>Run X11R6.</li>
45
 
<li>Create a dot file <tt>.xsmstartup</tt> in your home directory which contains the single line<pre>&nbsp;   xterm</pre>
 
39
<li>Create a dot file <tt>.xsmstartup</tt> in your home directory which contains the single line<pre> xterm</pre>
46
40
<p>This tells <tt>xsm</tt> that the default/failsafe session is just an xterm and nothing else. Otherwise <tt>xsm</tt> would try to invoke lots of clients including the windowmanager <tt>twm</tt>, which isn't very helpful.</p>
47
41
</li>
48
42
<li>Now launch <tt>xsm</tt> from another terminal window. Both a session manager window and the xterm will appear. The xterm has a nice property that sets it apart from all the other shells you are currently running: within its shell, the <tt>SESSION_MANAGER</tt> environment variable points to the session manager you just started.</li>
55
49
<table width="100%" cellspacing="0" border="0"><tr class="address">
56
50
<td width="30%">Copyright &copy; 2006 <a href="trolltech.html">Trolltech</a></td>
57
51
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
58
 
<td width="30%" align="right"><div align="right">Qt 4.1.4</div></td>
 
52
<td width="30%" align="right"><div align="right">Qt 4.2.0</div></td>
59
53
</tr></table></div></address></body>
60
54
</html>