<?xml version="1.0" encoding="utf-8"?>
<chapter id="sessions">
  <title>Sessões do GNOME</title>

  <!-- Maintained for 2.8 compatibility -->
  <anchor id="gosgetstarted-1"/>

  <remark>Precisa de uma introdução melhor</remark>
  <remark>Esse capítulo precisa ser trabalhado</remark>

  <highlights>
    <para>Este capítulo fornece as informações necessárias para você iniciar, gerenciar e encerrar uma sessão do GNOME.</para>
  </highlights>

  <sect1 id="gosgetstarted-69">
    <title>Iniciando uma Sessão</title>
    <indexterm>
      <primary>sessões</primary>
      <secondary>iniciando</secondary>
    </indexterm>
    <para>A <firstterm>session</firstterm> is the period of time you spend using GNOME, between logging in and logging out. During a session, you use your applications, print, browse the web, and so on.</para>
    <para>A sessão do GNOME começa quando você se identifica (realiza <foreignphrase>login</foreignphrase>). A tela "Bem-vindo" é a porta para o GNOME: é lá que você digita seu nome de usuário e senha, e seleciona opções como o idioma que o GNOME deve usar durante sua sessão.</para>
    <tip><para>
    Normally, logging out ends the session, but you can choose to save the state of your session and restore it next time you use GNOME: see <xref linkend="gosstartsession-2"/>.</para></tip>
    
    <!--
    2.14 has moved all this out of the standard dialogs.
    
    The session manager saves and restores the following: 
    <itemizedlist>
      <listitem>
        <para>The appearance and behavior settings, for example fonts, colors,
and mouse settings. </para>
      </listitem>
      <listitem>
        <para>The applications that you were running, for example file manager
and text editor windows. You cannot save and restore applications that the
session manager does not manage. For example, if you start the <application>vi</application> editor from the command line in a terminal window, session
manager cannot restore your editing session. </para>
      </listitem>
    </itemizedlist>
    -->
    
    
    <sect2 id="gosstartsession-85">
      <title>Entrando no GNOME</title>
      <indexterm>
        <primary>sessões</primary>
        <secondary>entrando</secondary>
      </indexterm>
      <indexterm>
        <primary>entrando</primary>
        <secondary>na sessão</secondary>
      </indexterm>
      <indexterm>
        <primary>iniciar sessão</primary>
      </indexterm>
      <para>Para iniciar uma sessão, execute os seguintes passos:</para>
      <orderedlist>
        <listitem>
          <para>On the login screen, click on the <guilabel>Session</guilabel>
icon. Choose the GNOME Desktop from the list of available desktop environments. 
Most users will not need to perform this step, as GNOME is usually the default 
desktop environment already.</para>
        </listitem>
        <listitem>
          <para>Digite seu nome de usuário no campo <guilabel>Nome de Usuário</guilabel> da tela de identificação, e então tecle <keycap>Enter</keycap>.</para>
        </listitem>
        <listitem>
          <para>Digite sua senha no campo <guilabel>Senha</guilabel> da tela de identificação e tecle <keycap>Enter</keycap>.</para>
        </listitem>
      </orderedlist>
      <para>When you log in successfully, GNOME will take a short amount of time to start up. When it is ready, you will see the Desktop and you can begin using your computer.</para>
      <para>The first time you log in, the session manager starts a new
session. If you have logged in before and saved the settings for the previous 
session when you logged out, then the session manager restores your
previous session.</para>
      <para>Se você quiser desligar ou reiniciar o sistema antes de iniciar a sessão, clique no ícone <guilabel>Sistema</guilabel> na tela de identificação. Escolha no diálogo a opção desejada e clique <guibutton>OK</guibutton>.</para>
      <para>Your system distributor or vendor may have altered the login screen 
      so that it no longer has a <guilabel>System</guilabel> icon. In this case, 
      the option to shut down the computer may be found by clicking the 
      <guilabel>Other</guilabel> icon, or by clicking a separate 
      <guibutton>Shut Down</guibutton> button.</para>
<!--What about failsafe gnome?-->
    </sect2>
    <sect2 id="gosstartsession-86">
      <title>Usando um Idioma Diferente</title>
      <indexterm>
        <primary>sessões</primary>
        <secondary>idioma diferente, entrando</secondary>
      </indexterm>
      <indexterm>
        <primary>idioma, escolhendo um diferente</primary>
      </indexterm>
      <indexterm>
        <primary>entrando</primary>
        <secondary>para sessão em outra língua</secondary>
      </indexterm>
      <para>Para iniciar uma sessão com um idioma diferente, execute as seguintes ações.</para>
      <orderedlist>
        <listitem>
          <para>Na tela de identificação, clique no ícone <guilabel>Idioma</guilabel>. Escolha na lista de idiomas qual você deseja.</para>
        </listitem>
        <listitem>
          <para>Digite seu nome de usuário no campo <guilabel>Nome de Usuário</guilabel> da tela de identificação, e então tecle <keycap>Enter</keycap>.</para>
        </listitem>
        <listitem>
          <para>Digite sua senha no campo <guilabel>Senha</guilabel> da tela de identificação e tecle <keycap>Enter</keycap>.</para>
        </listitem>
      </orderedlist>
      <note>
        <para>When you log in to a session in a different language, you are changing 
the language for the user interface but are not changing the keyboard layout. 
To choose a different keyboard layout, use the 
<ulink type="help" url="ghelp:gswitchit"><application>Keyboard Indicator</application></ulink> applet.</para>
      </note>
      <tip>
        <para>Your system distributor or vendor may have altered the login 
        screen so that it no longer has a <guilabel>Language</guilabel> icon. 
        In this case, the option to shut down the computer may be found by 
        clicking the <guilabel>Other</guilabel> icon.</para>
      </tip>
    </sect2>
  </sect1>
  <sect1 id="lock-screen">
    <title>Bloqueando sua Tela</title>
    <!-- preserve id for backwards compatibility: 2.12 -->
    <anchor id="gosstartsession-1"/>        
    <screenshot>
      <mediaobject>
        <imageobject>
          <imagedata fileref="figures/lockscreen_icon.png" format="PNG"/>
        </imageobject>
        <textobject>
          <phrase>Ícone de bloqueio de tela</phrase>
        </textobject>
      </mediaobject>
    </screenshot>
    <indexterm>
      <primary>sessões</primary>
      <secondary>bloqueando a tela</secondary>
    </indexterm>
    <indexterm>
      <primary>bloqueando a tela</primary>
    </indexterm>
    <indexterm>
      <primary>botão Bloquear tela</primary>
    </indexterm>
    <para>Locking your screen prevents access to your applications and information, allowing you to leave your computer unattended. While your screen is locked, the <link linkend="prefs-screensaver">screensaver</link> runs.</para>
    
    <para>Para bloquear a tela, execute uma das seguintes ações:</para>
    <itemizedlist>
      <listitem>
        <para>Escolha <menuchoice><guimenu>Sistema</guimenu><guimenuitem>Bloquear tela</guimenuitem></menuchoice>.</para>
      </listitem>
      <listitem>
        <para>Clique no botão <guibutton>Bloquear Tela</guibutton>, se estiver presente em um painel.</para>
        <note><para>The <guibutton>Lock Screen</guibutton> button is not present on the panels by default. To add it, see <xref linkend="panels-addobject"/>.</para></note>
      </listitem>
    </itemizedlist>
    <para>Para desbloquear a tela, movimente seu mouse ou pressione qualquer tecla, digite sua senha no diálogo de tela bloqueada, e então pressione <keycap>Enter</keycap>.</para>
    <para>If another user wants to use the computer while it is locked, they can move the mouse or press a key and then click <guibutton>Switch User</guibutton>. The login screen will be displayed and they can log in using their user account. They will not be able to access any of your applications or information. When they log out, the screen will be locked again and you can access your session by unlocking the screen.</para>
  <para>You can leave a message for a user who has locked their screen. Move the mouse or press any key and then click <guibutton>Leave Message</guibutton>. Type your message into the box and press <guibutton>Save</guibutton>. Your message will be displayed when the user unlocks their screen.</para>
  </sect1>

  <sect1 id="gosstartsession-2">
    <title>Setting Programs to Start Automatically When You Log In</title>
    <indexterm>
      <primary>ferramentas de preferências</primary>
      <secondary>Sessões</secondary>
    </indexterm>
    <indexterm>
      <primary>sessões</primary>
      <secondary>startup</secondary>
    </indexterm>
  <para>You can choose for certain programs to be started automatically when 
  you log in to a session. For example, you might want a web browser to be started 
  as soon as you log in. Programs which start automatically when you log in are 
  called <firstterm>startup programs</firstterm>. Startup programs are 
  automatically saved and safely closed by the session manager when you log 
  out, and are restarted when you log in.</para>
  <para>The <application>Sessions</application> preference tool allows you to 
  define which programs are started automatically when you log in. It has two 
  tabs, the <guilabel>Startup Programs</guilabel> tab and the 
  <guilabel>Options</guilabel> tab.</para>

    <sect2 id="gosstartsession-21">
      <title>Startup Programs Tab</title>
        <!-- Preserve IDs for backwards compatibility -->
        <anchor id="gosstartsession-6"/>
        <anchor id="gosstartsession-10"/>
      <para>You can use the Startup Programs tab to add, modify, and 
      remove startup programs.</para>
      <para>A list of startup programs is displayed on this tab. The list shows 
      a short description of each program, along with a checkbox which denotes 
      whether the startup program is enabled or not. Programs which are not 
      enabled will not be started automatically when you log in.</para>

      <sect3 id="gosstartsession-211">
       <title>Enabling/Disabling Startup Programs</title>
       <para>To enable a program to start up automatically, check the checkbox 
       corresponding to that program.</para>
       <para>To disable a program from starting automatically, uncheck the 
       checkbox.</para>
      </sect3>
      <sect3 id="gosstartsession-212">
       <title>Adding A New Startup Program</title>
       <para>To add a new startup program, perform the following steps:</para>
       <procedure>
        <step>
         <para>Click <guibutton>Add</guibutton>. This will open the 
         <application>Add Startup Program</application> dialog box.</para>
        </step>
        <step>
         <para>Use the <guilabel>Name</guilabel> text box to specify a name for 
         the new startup program.</para>
        </step>
        <step>
         <para>Use the <guilabel>Command</guilabel> text box to specify the 
         command which will invoke the application. For example, the command 
         <userinput>gedit</userinput> will start the <application>Gedit Text 
         Editor</application>. If you do not know the exact command, click 
         <guibutton>Browse</guibutton> to choose the path of the command.</para>
        </step>
        <step>
         <para>Enter a description of the application in the 
         <guilabel>Comments</guilabel> text box. You will see this as the 
         description of the program in the list of startup programs.</para>
        </step>
        <step>
         <para>Click <guibutton>Add</guibutton>. The application will be added 
         to the list of startup programs with its checkbox in the checked 
         (enabled) state.</para>
        </step>
       </procedure>
      </sect3>
      <sect3 id="gosstartsession-213">
       <title>Removing A Startup Program</title>
       <para>To remove a startup program, select it from the list of startup 
       programs and click <guibutton>Remove</guibutton>.</para>
      </sect3>
      <sect3 id="gosstartsession-214">
       <title>Editing A Startup Program</title>
       <para>To edit an existing startup program, select it from the list of 
       startup programs and click <guibutton>Edit</guibutton>. A dialog will 
       appear which allows you to edit the properties of the program. See 
       <xref linkend="gosstartsession-212"/> for more information on the 
       options available in this dialog.</para>
      </sect3>
    </sect2>
    
    <sect2 id="gosstartsession-22">
      <title>Session Options Tab</title>
        <!-- Preserve IDs for backwards compatibility -->
        <anchor id="gosstartsession-9"/>
        <anchor id="gosgetstarted-74"/>
      <para>The session manager can remember which applications you have 
      running when you log out and can automatically restart them when you log 
      in again. If you would like this to happen every time you log out, check 
      <guilabel>Automatically remember running applications when 
      logging out</guilabel>. If you would like this to happen only once, click 
      <guibutton>Remember Currently Running Application</guibutton> before 
      logging out.</para>
    </sect2>
  </sect1>
  
  <sect1 id="shutdown">
    <title>Encerrando uma Sessão</title>
    <!-- preserve id for backwards compatibility: 2.12 -->
    <anchor id="gosgetstarted-73"/>        
    <indexterm>
      <primary>sessões</primary>
      <secondary>terminando</secondary>
    </indexterm>
    <indexterm>
      <primary>sessões</primary>
      <secondary>saindo</secondary>
    </indexterm>
    <indexterm>
      <primary>saindo</primary>
    </indexterm>
    <indexterm>
      <primary>sair</primary>
    </indexterm>
    <indexterm>
      <primary>desligar</primary>
    </indexterm>  
    <!--  
    commenting this out for now. A shot of the shutdown button would be good too.
    <screenshot>
      <mediaobject>
        <imageobject>
          <imagedata fileref="figures/logout_icon.png" format="PNG"/>
        </imageobject>
        <textobject>
          <phrase>Log Out icon.</phrase>
        </textobject>
      </mediaobject>
    </screenshot>
    -->
    <para>Quando você tiver terminado de usar seu computador, pode escolher fazer uma das seguintes ações:</para>
    <itemizedlist>
      <listitem>
        <para>Log out, leaving the computer ready for another user to begin working with it. To log out of GNOME, choose <menuchoice><guimenu>System</guimenu><guimenuitem>Log Out <replaceable>username</replaceable></guimenuitem></menuchoice> .</para>
      </listitem>
      <listitem>
        <para>Shut down your computer and switch off the power. To shut down, choose <menuchoice><guimenu>System</guimenu><guimenuitem>Shut Down</guimenuitem></menuchoice> and click <guibutton>Shut Down</guibutton> on the dialog that appears.</para>
      </listitem>
      <listitem>
        <para>Depending on your computer's configuration, you can also <firstterm>Hibernate</firstterm> your computer. During hibernation, less power is used, but all of the applications and documents that you have open are preserved and will still be open when you resume from hibernation. You can resume from hibernation by moving your mouse or pressing a key.</para>
      </listitem>
    </itemizedlist>
    
    <note>
        <para>Some vendors and distributors allow you to hibernate your computer in two ways, often called Hibernate and <firstterm>Suspend</firstterm>. Both of these will preserve your open files and applications, but one will switch off the power to your computer while the other will leave the computer running in a state that uses less power.</para>
    </note>
       
    <para>Quando você finaliza sua sessão, aplicativos com trabalho não-salvo irão avisá-lo. Você pode escolher entre salvar seu trabalho ou cancelar o encerramento da sessão.</para>

    <para>Antes de sair da sessão, você pode querer salvar suas configuração de forma a poder restaurar a sessão mais tarde. Na ferramenta de preferências <link linkend="prefs-sessions"><application>Sessões</application></link>, você pode selecionar uma opção para salvar automaticamente suas configurações atuais.</para>
  </sect1>
</chapter>
