dtsessdb.sgm 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!-- $XConsortium: dtsessdb.sgm /main/6 1996/09/08 20:19:12 rws $ -->
  2. <!-- (c) Copyright 1996 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1996 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1996 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1996 Novell, Inc. -->
  7. <!-- (c) Copyright 1996 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1996 Hitachi. -->
  9. <refentry id="CDE.SESS.dtsessiondb">
  10. <refmeta><refentrytitle>
  11. dtsessiondb
  12. </refentrytitle><manvolnum>special file</manvolnum>
  13. </refmeta>
  14. <refnamediv><refname><filename>dtsessiondb</filename></refname><refpurpose>
  15. format and location of desktop session database</refpurpose></refnamediv>
  16. <refsect1>
  17. <title>DESCRIPTION</title>
  18. <para>During a session checkpoint, the Session Manager creates a database
  19. of its clients and for each client saves the values of the following
  20. properties:
  21. </para>
  22. <simplelist>
  23. <member>
  24. <literal>CurrentDirectory</literal>
  25. </member>
  26. <member>
  27. <literal>Program</literal>
  28. </member>
  29. <member>
  30. <literal>RestartCommand</literal>
  31. </member>
  32. <member>
  33. <literal>CloneCommand</literal>
  34. </member>
  35. <member>
  36. <literal>DiscardCommand</literal>
  37. </member>
  38. <member>
  39. <literal>Environment</literal>
  40. </member>
  41. <member>
  42. <literal>RestartStyleHint</literal>
  43. </member>
  44. </simplelist>
  45. <para>The Session Manager also saves a client's host name and session id.
  46. If a client's screen number is available, the Session Manager
  47. will save the screen number.
  48. </para>
  49. <para>CDEnext session databases (<Filename>dtsession.db</Filename>)
  50. supersede CDE1.0 session databases (described in
  51. &cdeman.dtsessionfile;). The CDEnext Session Manager
  52. can read CDE 1.0 session databases but not write
  53. to them. It will write only to CDEnext session databases.
  54. </para>
  55. <Para>At session startup, the session manager restarts any applications
  56. that were saved as part of the selected session. The system default set of
  57. applications to be restored as part of the user's Initial Session can be found in
  58. /usr/dt/config/$LANG/sys.session. This file should not be edited as
  59. it will be unconditionally overwritten upon subsequent desktop
  60. installations.
  61. </Para>
  62. <Para>A system administrator may replace the set of applications that
  63. are restored as part of the user's Initial Session by creating
  64. a file named /etc/dt/config/$LANG/sys.session. Unlike the resource
  65. files, this file will be used as a complete replacement for the
  66. desktop default file, so it is valid to make a copy of the system
  67. default file and make any necessary modifications.
  68. </Para>
  69. </refsect1>
  70. <refsect1>
  71. <title>FORMAT</title>
  72. <para>The CDEnext Session Manager database format is based upon Xrm and
  73. is as follows:
  74. </para>
  75. <programlisting>! dtsession.db
  76. !
  77. .version: &lt;dtsession version>
  78. .dtsessionID: &lt;dtsession's session ID>
  79. !
  80. Client.&lt;ClientID>: &lt;ClientID>
  81. &lt;ClientID>.SessionID: &lt;client's session ID>
  82. &lt;ClientID>.Program:
  83. &lt;ClientID>.host:
  84. &lt;ClientID>.screen:
  85. &lt;ClientID>.RestartCommand.0:
  86. &lt;ClientID>.RestartCommand.1:
  87. &lt;ClientID>.RestartCommand.&lt;n>:
  88. &lt;ClientID>.CloneCommand.0:
  89. &lt;ClientID>.CloneCommand.1:
  90. &lt;ClientID>.CloneCommand.&lt;n>:
  91. &lt;ClientID>.DiscardCommand.0:
  92. &lt;ClientID>.DiscardCommand.1:
  93. &lt;ClientID>.DiscardCommand.&lt;n>:
  94. &lt;ClientID>.Environment.0:
  95. &lt;ClientID>.Environment.1:
  96. &lt;ClientID>.Environment.&lt;n>:
  97. !
  98. ProxyClient.&lt;proxy_client_num>: &lt;proxy_client_num>
  99. &lt;proxy_client_num>.screen:
  100. &lt;proxy_client_num>.host:
  101. &lt;proxy_client_num>.cmd:
  102. </programlisting>
  103. <para>&lt;ClientID> is a sequential number for the XSMP-based session clients.
  104. &lt;proxy_client_num> is a sequential number for the proxy or ICCCM-based
  105. session clients.
  106. </para>
  107. <para>The <literal>RestartCommand</literal>, <literal>CloneCommand</literal>,
  108. <literal>DiscardCommand</literal>, and <literal>Environment</literal> properties
  109. are of format ARRAY8. To facilitate the storage of these properties, the
  110. Session Manager stores them as separate resources, with appropriate suffixes
  111. for their positions in the array.
  112. </para>
  113. <para>The CDEnext Session Manager includes its version number when it writes a
  114. session database. CDE 1.0 session databases do not contain version information.
  115. </para>
  116. <para>The Session Manager sets only the <literal>_DT_SESSION_HINTS</literal>
  117. property if the started session is from a CDE 1.0 session database.
  118. The CDEnext Window Manager uses the <literal>_DT_SESSION_HINTS</literal>
  119. property if it is defined. It saves this information in its state file.
  120. The Session Manager does not store any window manager
  121. information in its database.
  122. </para>
  123. </refsect1>
  124. <refsect1>
  125. <title>SEE ALSO</title>
  126. <para>&cdeman.dtsession;,
  127. &cdeman.dtsessionfile;
  128. </para>
  129. </refsect1>
  130. </refentry>