When the X11 Window System is installed, the X11 session automatically will be
created in the /mac/lib/sessiontypes directory.
The code below shows how the X11 session is created from an X11.r resource
file. The X11.r file is as follows:
/*
* description file for X11 session type.
*/
resource 'STR#' (128) {
{
/* The name that the user selects in the list box. */
"X11";
/* The description of this session type. */
"X11 is Apple's adaptation of the industry standard "
"X Window System for A/UX. X11 is a pure X environment, "
"and no Macintosh compatibility is provided.";
/* The command that gets executed for this session type. */
"/usr/lib/X11/X";
/* Name of file to look for in user's home directory to run */
/* instead of command given above. */
".X11"
}
};
Then the following commands create the X11 resource file:
/mac/bin/rez -i /:mac:lib:rincludes types.r X11.r
fcnvt -f -s Rez.out X11
rm -f Rez.out
With the above example, you can create your own session.