Java Desktop System Release 3 User Guide

Configuring Sessions

To access the Sessions preference tool, click Launch, then choose Preferences -> Desktop Preferences -> Sessions.

The Sessions preference tool enables you to manage your sessions. You can set session preferences, and specify which applications to start when you start a session. You can configure sessions to save the state of applications in the Java Desktop System, and to restore the state when you start another session. You can also use this preference tool to manage multiple Java Desktop System sessions.

You can customize the settings for sessions and startup applications in the following functional areas:

Setting Session Preferences

Use the Session Options tabbed section to manage multiple sessions, and to set preferences for the current session.

Table 7–38 lists the session options that you can modify.

Table 7–38 Session Options

Dialog Element 

Description 

Show splash screen on login

Select this option to display a splash screen when you start a session.  

Prompt on logout

Select this option to display a confirmation dialog when you end a session.  

Automatically save changes to session

Select this option if you want the session manager to save the current state of your session. The session manager saves the session-managed applications that are open, and the settings associated with the session-managed applications. The next time that you start a session, the applications start automatically, with the saved settings. 

If you do not select this option, the Logout Confirmation dialog displays a Save current setup option when you end your session.

Sessions

Use this area of the dialog to manage multiple sessions in the Java Desktop System, as follows: 

  • To create a new session, click on the Add button. Use the Add a new session dialog to specify a name for your session.

  • To change the name of a session, select the session in the Sessions table. Click on the Edit button. The Edit session name dialog is displayed. Type a new name for your session.

  • To delete a session, select the session in the Sessions table. Click on the Delete button.

Setting Session Properties

Use the Current Session tabbed section to specify startup order values, and to choose restart styles for the session-managed applications in your current session.

Table 7–39 lists the session properties that you can configure.

Table 7–39 Session Properties

Dialog Element 

Description 

Order

The Order property specifies the order in which the session manager starts session-managed startup applications. The session manager starts applications with lower order values first. The default value is 50.

To specify the startup order of an application, select the application in the table. Use the Order spin box to specify the startup order value.

Style

The Style property determines the restart style of an application. To select a restart style for an application, select the application in the table, then choose one of the following styles:

  • Normal

    Starts automatically when you start a Java Desktop System session. Use the kill command to terminate applications with this restart style during a session.

  • Restart

    Restarts automatically whenever you close or terminate the application. Choose this style for an application if the application must run continuously during your session. To terminate an application with this restart style, select the application in the table, then click on the Remove button.

  • Trash

    Does not start when you start a Java Desktop System session.

  • Settings

    Starts automatically when you start a Java Desktop System session. Applications with this style usually have a low startup order, and store your configuration settings for the Java Desktop System and session-managed applications.

State

Shows the current status of the application. 

Program

Shows a brief description of the type of application. 

Remove

Click on the Remove button to delete the selected application from the list. The application is removed from the session manager, and closed. Applications that you delete are not started the next time that you start a session.

Apply

Click on the Apply button to apply changes to the startup order and the restart style.

Configuring Startup Applications

Use the Startup Programs tabbed section of the Sessions preference tool to specify non-session-managed startup applications. Startup applications are applications that start automatically when you start a session. You specify the commands that run the non-session-managed applications in the Startup Programs tabbed section. The commands execute automatically when you log in.

You can also start session-managed applications automatically. For more information, see Setting Session Properties.

Table 7–40 lists the startup applications preferences that you can modify.

Table 7–40 Startup Programs Preferences

Dialog Element 

Description 

Additional startup programs

Use this table to manage non-session-managed startup applications as follows: 

  • To add a startup application, click on the Add button. The Add Startup Program dialog is displayed. Enter the command to start the application in the Startup Command field or use the down-arrow to select a previously entered startup command. Alternatively, click Browse to display a Startup Command dialog. Use the dialog to specify the startup command that you want to associate with the startup program.

    If you specify more than one startup application, use the Order spin box to specify the startup order of the each application. The startup order is the order in which you want the startup applications to start.

  • To edit a startup application, select the startup application, then click on the Edit button. The Edit Startup Program dialog is displayed. Use the dialog to modify the command and the startup order for the startup application.

  • To delete a startup application, select the startup application, then click on the Delete button.