Document revision date: 10 November 2000 | |
Previous | Contents | Index |
When a user enters a correct user name and password in the Start Session dialog box, DECwindows runs several command and executable files. A system manager or a user with privileges can customize this startup sequence.
This chapter describes the DECwindows startup sequence and explains how
to customize it.
13.1 The Startup Sequence
By default, the following events occur when a user starts a session:
To customize the system startup environment, rename the SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE file to SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM. You can modify SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM to customize the following client environment areas:
The remaining sections in this chapter contain examples for customizing
the DECwindows client environment.
13.3 Changing Your Logo
The default login screen, featuring the DIGITAL logo and the Start Session screen, is displayed. For an example of the login screen, see Chapter 2.
You must use the Start Session screen for logging in to DECwindows, but you can substitute your own logo for the DIGITAL logo by running an application that displays your logo.
To do this, you need to define a global symbol in the DECW$PRIVATE_APPS_SETUP.COM file and create a DCL command file that contains the commands to display your logo. For example, to display your own logo on the login screen:
For example:
$ COPY SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$SPECIFIC:[SYSMANAGER]DECW$PRIVATE_APPS_SETUP.COM/LOG |
$ DECW$LOGINLOGO == "SYS$MANAGER:MYLOGO.COM" |
$ RUN DECW$EXAMPLES:ICO |
If you are a system manager, you can set up user accounts to run only certain applications. For example, you might want users to use only the Bookreader application.
This section describes the following three methods for setting up dedicated DECwindows accounts:
You can define the global symbol DECW$SESSIONCOM in the SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM file so that when a user logs in, LOGINOUT runs a command file other than DECW$STARTSM.COM. This action bypasses Session Manager altogether.
In the following example, DECW$SESSIONCOM is a logical name that determines the command file that starts Session Manager. The default command file is SYS$MANAGER: DECW$STARTSM.COM. You can run a private command file instead of this file by defining the global symbol DECW$SESSIONCOM in SYS$MANAGER: DECW$PRIVATE_APPS_SETUP.COM. If this symbol is defined, SYS$MANAGER: DECW$STARTAPPS.COM defines the DECW$SESSIONCOM logical name in the system logical name table.
Because DECW$SESSIONCOM is defined in the system logical name table, it affects Session Manager startup for every user name. Your private command file must check the user name under which it is running, and run the normal DECW$STARTSM.COM procedure for nondedicated accounts.
Note that with this method, startup command procedures that normally start from DECW$STARTSM.COM are not run. These include SYLOGIN.COM, LOGIN.COM, DECW$SYLOGIN.COM, and DECW$LOGIN.COM.
To modify the session manager command procedure:
$ CREATE SYS$MANAGER:PRIVATE_SESSIONCOM.COM $! $! Check to see whether this is the dedicated DECwindows account. $! If it isn't, run the normal procedure to start the $! Session Manager. $! $ username = F$USER() $ IF F$LOCATE("BOOK_READER", username) .NE. F$LENGTH(username) - THEN GOTO dedicated $! $! Normal, nondedicated DECwindows login $! $ @SYS$MANAGER:DECW$STARTSM $ EXIT $! $! Dedicated DECwindows login. Run Bookreader and then exit. $! $ dedicated: $! $ RUN SYS$SYSTEM:DECW$WSINIT $ display = F$LOGICAL("decw$display") $ RUN/DETACHED/OUTPUT='display' SYS$SYSTEM:DECW$MWM $ RUN SYS$SYSTEM:DECW$BOOKREADER $ endsession := $DECW$ENDSESSION $ endsession -noprompt $ STOP/ID=0 ^Z |
$ COPY SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.COM |
$ DECW$SESSIONCOM :== SYS$MANAGER:PRIVATE_SESSIONCOM.COM |
$ @SYS$MANAGER:DECW$STARTUP RESTART |
You can define DECW$SESSIONMAIN in the SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM file so that DECW$STARTSM.COM runs the specified command file instead of DECW$SESSION.EXE. Session Manager reads resource files and executes login command files, but does not display Session Manager's menu bar. With this method, you must also ensure that the End Session command does not prompt for confirmation.
When DECW$STARTSM.COM starts (that is, if DECW$SESSIONCOM has its default value), it starts Session Manager by executing the DCL command that is stored in the logical name DECW$SESSIONMAIN. To define this logical name, edit SYS$MANAGER:PRIVATE_APPS_SETUP.COM so that it defines the global symbol DECW$SESSIONMAIN as the DCL command to execute.
This method is similar to the one described in the preceding section, except that with this method, DECW$STARTSM.COM executes the SYLOGIN.COM, LOGIN.COM, DECW$SYLOGIN.COM, and DECW$LOGIN.COM command procedures. Also, DECW$STARTSM.COM executes DECW$WSINIT.COM, so the private command procedure does not need to do so.
By default, DECW$STARTSM.COM executes DECW$ENDSESSION.EXE and STOP/ID=0 after the DECW$SESSIONMAIN command has exited. In this case, however, you must make sure that End Session does not prompt for confirmation. (If the user cancels an end session operation, the workstation will be unusable). The private command procedure in the following example explicitly runs DECW$ENDSESSION with the -noprompt switch.
To modify Session Manager's executable file:
$ CREATE SYS$MANAGER:PRIVATE_SESSIONMAIN.COM $! $! Check to see whether this is the dedicated DECwindows account. $! If it isn't, run the normal procedure to start the $! Session Manager. $! $ username = F$USER() $ IF F$LOCATE("BOOK_READER", USERNAME) .NE. F$LENGTH(USERNAME) - THEN GOTO dedicated $! $! Normal, nondedicated DECwindows login $! $ RUN SYS$SYSTEM:DECW$SESSION $ EXIT $! $! Dedicated DECwindows login. Run Bookreader and then exit. $! $ dedicated: $! $ display = F$LOGICAL("decw$display") $ RUN/DETACHED/OUTPUT='display' SYS$SYSTEM:DECW$MWM $ RUN SYS$SYSTEM:DECW$BOOKREADER $ endsession := $DECW$ENDSESSION $ endsession -noprompt $ STOP/ID=0 ^Z |
$ COPY SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.COM |
$ DECW$SESSIONMAIN :== @SYS$MANAGER:PRIVATE_SESSIONMAIN.COM |
$ @SYS$MANAGER:DECW$STARTUP RESTART |
This method starts Session Manager normally, but the system manager customizes its menus to remove any applications that are not started automatically. By removing certain applications, a system manager can limit user access to applications.
With this method, Session Manager's menu bar is displayed, and the user can interact with whatever dialog boxes the system manager does not disable.
To modify the Session Manager profile file:
Automatic Startup...
Menus...
Menu Bar...
Save Session Manager
As described in Part II, you can customize Session Manager and FileView and save views you use frequently. When you customize Session Manager and FileView, you create a private customization file that your system reads every time you start an application.
You can share your custom file with other users. For example, you might want to share a custom pull-down menu with other coworkers. When several users share a public customization file, they have access to a common custom file that can include custom menu items or pull-down menus.
This chapter describes how to create and manage private, public, and
system customization files.
14.1 Using Shared Customization Files
When you start Session Manager or FileView, these applications read and merge the contents of the customization files to create your environment. First, they read the system customization file. The system customization file shipped with DECwindows, contains definitions that produce the menu bar, menu items, and saved views you saw when you first started Session Manager or FileView. Next, they read the public customization files, if any exist. The public customization file contains any definitions that you share with other users, for example, a shared pull-down menu. Finally, they read your private customization file, which contains your personal definitions.
When Session Manager and FileView try to find the system customization file, they look first in the location defined by the logical name VUE$SYSTEM_PROFILE. If no translation is found, they use the file specification DECW$SYSTEM_DEFAULTS:VUE$SYSTEM_PROFILE.VUE$DAT to locate the system customization file. (The system customization file is placed in the DECW$SYSTEM_DEFAULTS directory when you install DECwindows.)
When Session Manager and FileView try to locate the public customization file, they look first in the location defined by the logical name VUE$PUBLIC_PROFILE. You can equate this logical name with a file specification to point to directories containing public customization files. (VUE$PUBLIC_PROFILE can be a search list that points to a list of directories containing customization files that you share with other users.) If no translation is found, Session Manager and FileView read all the files that match the file specification VUE$LIBRARY:*.VUE$DAT. As the files are read, their specifications are added to a list in memory. This ensures that no two files with the same name are loaded.
Finally, Session Manager and FileView find your private customization file by using the logical name VUE$PROFILE. You can equate this logical name with a file specification to point to your private customization file. If no translation is found, Session Manager and FileView use the file specification DECW$USER_DEFAULTS:VUE$PROFILE.VUE$DAT. This normally translates to your SYS$LOGIN directory, but you can redefine it to translate to any other directory.
When you rearrange the order of menu items on a menu in a public
customization file or remove a built-in menu item from it, you create a
copy of that menu in your private customization file. Because Session
Manager and FileView read your private customization file last, any
subsequent changes made to the public customization file will not be
reflected in your private customization file. For example, if new menu
items are added to a menu in the public customization file, you will
not see those additions. Your private customization file will override
the public file. Adding additional menu items to a sorted menu does not
make a private copy of the public menu definition.
14.2 Creating Shared Customization Files
Session Manager and FileView read your private customization file by translating the logical name VUE$PROFILE and reading all files with the extension VUE$DAT. You can use the Create Public Profile File command to create a file that contains customized Session Manager or FileView components.
To build a public customization file that you can share with other users:
Any changes you make are saved in the new profile, so do not move the FileView or Session Manager window or save settings in any built-in dialog boxes. These settings will be saved in the public profile you are creating. |
Previous | Next | Contents | Index |
privacy and legal statement | ||
5633PRO_011.HTML |