gnome-session.1 revision 11933
10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!ENTITY cmd "gnome-session">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2003,2006 Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub Inc>
10139N/A<refentry id="gnome-session-1">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>gnome-session</refentrytitle><manvolnum>1</manvolnum>
10139N/A<refmiscinfo class="date">13 Jan 2003</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
10139N/A<indexterm><primary>gnome-session</primary></indexterm><indexterm><primary>
10139N/Astarts up the GNOME desktop environment</primary></indexterm><refnamediv id="gnome-session-1-name">
10139N/A<refname>gnome-session</refname><refpurpose>starts up the GNOME desktop environment
10139N/A</refpurpose></refnamediv>
10139N/A<refsynopsisdiv id="gnome-session-1-synp"><title>&synp-tt;</title>
10139N/A<cmdsynopsis><command>&cmd;</command>
10139N/A<arg choice="opt"><option>-choose-session=<replaceable>MySession</replaceable></option></arg>
10139N/A<arg choice="opt"><option>-failsafe</option></arg>
10139N/A<arg choice="opt"><option>-purge-delay=<replaceable>delay</replaceable></option></arg>
10139N/A<arg choice="opt"><option>-warn-delay=<replaceable>delay</replaceable></option></arg>
10139N/A<arg choice="opt"><option>-suicide-delay=<replaceable>delay</replaceable></option></arg>
10139N/A<arg choice="opt"><option role="nodash"><replaceable>gnome-std-options</replaceable></option></arg>
10139N/A<arg choice="opt"><option role="nodash"><replaceable>session-name</replaceable></option></arg>
10139N/A</cmdsynopsis></refsynopsisdiv>
10139N/A<refsect1 id="gnome-session-1-desc"><title>&desc-tt;</title>
10139N/A<para>The <command>&cmd;</command> program starts up the GNOME desktop environment.
10139N/AThis command is typically executed by your login manager (e.g. <filename>GDM</filename>,
10139N/A<filename>dtlogin</filename>, <filename>XDM</filename>, or from
10139N/Ayour X startup scripts). It will either load your last session, or provide a
10139N/Adefault session for the user as defined by the system administrator (or the
10139N/Adefault GNOME installation on your system). You can optionally specify a
10139N/Aspecific session name to restore.
10139N/A</para>
10139N/A<para><command>&cmd;</command> is an X11R6 session manager. It can manage
10139N/AGNOME applications as well as any X11R6 SM compliant sessions. If the user
10139N/Ahas previously saved a session, the session is loaded from the
11870N/A<filename>~/.gnome2/session</filename> file. Various default values are
11870N/Aprovided in case this file does not exist. If the user session file does
11870N/Anot exist, &cmd; will use the contents of the
11870N/A<filename>default.session</filename> file.
10139N/A</para>
10139N/A
10139N/A<para>
10139N/A<command>&cmd;</command> also exports an X Atom called GNOME_SM_DESKTOP
10139N/Aon the root window, to indicate that <command>&cmd;</command> has started.
11904N/ASome applications may require such information to proceed correctly.
10139N/A</para>
10139N/A
10139N/A</refsect1>
10139N/A<refsect1 id="gnome-session-1-opts"><title>&opts-tt;</title>
10139N/A<para>The following options are supported:</para>
10139N/A<variablelist termlength="wide">
10139N/A<varlistentry><term><option>-choose-session=<replaceable>MySession</replaceable></option></term><listitem>
10139N/A<para>
10139N/AUser can specify a session to load, as opposed to the session specified in the
10139N/A<filename>~/.gnome/session-options</filename> file. If that entry does not exist
10139N/Ain the <filename>~/.gnome/session</filename> file (or if that file does not exist),
10139N/A<command>&cmd;</command> will use the default session, and all saves to that
10139N/Asession will be to the new session name.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>-failsafe</option></term><listitem><para>Fail-safe
10139N/Aoperations mode: <command>&cmd;</command> only reads saved sessions from the <filename>
10139N/Adefault.session</filename> file.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>-purge-delay=<replaceable>delay</replaceable></option></term>
10139N/A<listitem><para>The number of milliseconds that <command>&cmd;</command> will
10139N/Await for clients to register. If <replaceable>delay</replaceable> is 0, <command>&cmd;</command>
10139N/Awill wait forever. The default value is 30,000 milliseconds.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>-suicide-delay=<replaceable>delay</replaceable></option></term>
10139N/A<listitem><para>The number of milliseconds that <command>&cmd;</command> will
10139N/Await for clients to die. If <replaceable>delay</replaceable> is 0, <command>&cmd;</command>
10139N/Awill wait forever. The default value is 10,000 milliseconds.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>-warn-delay=<replaceable>delay</replaceable></option></term>
10139N/A<listitem><para>The number of milliseconds that <command>&cmd;</command> will
10139N/Await for clients to respond. If <replaceable>delay</replaceable> is 0, <command>&cmd;</command>
10139N/Awill wait forever. The default value is 10,000 milliseconds.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash"><replaceable>gnome-std-options</replaceable></option></term>
10139N/A<listitem><para>Standard options available for use with most GNOME applications.
10139N/ASee <citerefentry><refentrytitle>gnome-std-options</refentrytitle><manvolnum>
10139N/A5</manvolnum></citerefentry> for more information.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="gnome-session-1-oper"><title>&oper-tt;</title>
10139N/A<para>The following operands are supported:</para>
10139N/A<variablelist termlength="wide"><varlistentry><term><option role="nodash"><replaceable>
10139N/Asession-name</replaceable></option></term><listitem><para>The name of the
10139N/Asession to be loaded.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="gnome-session-1-exam"><title>&exam-tt;</title>
10139N/A<example role="example"><title>Starting a session named "MySession"</title>
10139N/A<para><screen>example% <userinput>&cmd; --choose-session=MySession</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Starting the system default session, ignoring
10139N/Athe user's session</title>
10139N/A<para><screen>example% <userinput>&cmd; --failsafe</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Setting the purge delay to 50000ms</title>
10139N/A<para><screen>example% <userinput>&cmd; --purge-delay=50000</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Setting the suicide delay to 50000ms</title>
10139N/A<para><screen>example% <userinput>&cmd; --suicide-delay=50000</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example"><title>Setting the warning delay to 50000ms</title>
10139N/A<para><screen>example% <userinput>&cmd; --warn-delay=50000</userinput></screen></para>
10139N/A</example>
10139N/A</refsect1>
10139N/A<refsect1 id="gnome-session-1-envr"><title>&envr-tt;</title>
10139N/A<para><command>&cmd;</command> accepts all of the standard environment variables
10139N/Aused by GNOME programs, as well as the SESSION_MANAGER environment variable. <command>&cmd;</command>
10139N/Aalso sets several environment variables for the use of its child processes.
10139N/A</para>
10139N/A<para>See <citerefentry><refentrytitle>environ</refentrytitle><manvolnum>
10139N/A5</manvolnum></citerefentry> for descriptions of the following environment
10139N/Avariables:</para>
10139N/A<variablelist><varlistentry><term>SESSION_MANAGER</term><listitem><para>Used
10139N/Aby session-manager-aware clients to contact <command>&cmd;</command>.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term>DISPLAY</term><listitem><para>Set to the X display being
10139N/Aused by <command>&cmd;</command>. Note that the <option>-display</option>
10139N/Aoption, if specified, overrides the setting of the DISPLAY environment variable.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="gnome-session-1-exit"><title>&exit-tt;</title>
10139N/A<para>The following exit values are returned:</para>
10139N/A<variablelist termlength="xtranarrow"><varlistentry><term><returnvalue>0</returnvalue></term>
10139N/A<listitem><para>Application exited successfully</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><returnvalue>>0</returnvalue></term><listitem><para>Application
10139N/Aexited with failure</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="gnome-session-1-file"><title>&file-tt;</title>
10139N/A<para>The following files are used by this application:</para>
11870N/A<variablelist termlength="wholeline">
11870N/A<varlistentry>
11870N/A<term><filename>/usr/bin/&cmd;</filename></term><listitem>
11870N/A<para>The command-line executable for the application.</para>
11870N/A</listitem></varlistentry>
11870N/A<varlistentry>
11870N/A<term><filename>/usr/share/gnome/default.session</filename></term><listitem>
11870N/A<para>Location of default session file.</para>
10139N/A</listitem></varlistentry>
11870N/A<varlistentry>
11870N/A<term><filename>~/.gnome2/session-options</filename></term><listitem>
11870N/A<para>User session options. This file is created if the user saves a
11870N/Asession using <command>gnome-session-save</command> and specifies a
11870N/Adifferent session name than the default. The key
11870N/ACurrentSession in this file specifies which session to start by
11870N/Adefault.</para>
10139N/A</listitem></varlistentry>
11870N/A<varlistentry>
11870N/A<term><filename>~/.gnome2/session</filename></term><listitem>
11870N/A<para>User session file. This file is created if the user saves a
11870N/Asession either by running <command>gnome-session-save</command>
11870N/Aor by other means, such as selecting to save session on logout.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="gnome-session-1-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
10139N/A<row><entry><para>Availability</para></entry><entry><para>SUNWgnome-session
10139N/A</para></entry></row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
10139N/Acolname="COLSPEC1"><para>Volatile</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="gnome-session-1-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
10139N/A<para>
10139N/A<citerefentry><refentrytitle>gnome-session-remove</refentrytitle><manvolnum>1</manvolnum>,
10139N/A<citerefentry><refentrytitle>gnome-session-save</refentrytitle><manvolnum>1</manvolnum>,
11904N/A<citerefentry><refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
11904N/A<citerefentry><refentrytitle>environ</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
10139N/A<citerefentry><refentrytitle>default.session</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
10139N/A<refentrytitle>gnome-std-options</refentrytitle><manvolnum>5</manvolnum></citerefentry>
10139N/A</citerefentry></para>
10139N/A</refsect1>
10139N/A<refsect1 id="gnome-session-1-note"><title>&note-tt;</title>
11933N/A<para>Written by Brian Cameron, Sun Microsystems Inc., 2003, 2006.</para>
10139N/A</refsect1>
10139N/A</refentry>