|
|
If you want to start a Graphical Environment session from the command line,
you must run the startx script:
startx &
If you started a session by logging in through the scologin window, scologin's Xsession-SHELL file also runs the startx script, with the -t option. See ``Defining X server sessions'' for more information on the Xsession-SHELL file.
If the startx script is run without any options, it:
where hostname is the name of the current host and :display_number is the next available display. If no other servers are running, the :display_number is set to zero.
DISPLAY environment variable not set
For information on the $DISPLAY environment variable, see ``Using environment variables''.
The /usr/lib/X11/sys.startxrc file specifies the clients and commands that are run by default in X server sessions for all users on the system. Because the default configuration uses the session manager to control Graphical Environment sessions, scosession is the only client that is run by the sys.startxrc file. This file contains the following line:
exec scosession 2> /dev/null
If you want your system to use scosession to manage Graphical Environment sessions, you should not modify this file.
The startx script also looks for a local .startxrc file, located in a user's home directory. If a user wants to use the session manager, there is no need to put a .startxrc file in $HOME. The sys.startxrc file is used to run scosession.
If, however, a user does not want to run scosession, a .startxrc file is needed in $HOME to start the desired clients, particularly the window manager. The .startxrc file is not placed in a user's home directory by default. To create this file, copy /usr/lib/X11/sys.startxrc to .startxrc in your home directory.
See also: