[an error occurred while processing this directive]
HP OpenVMS Systems Documentation |
HP DECwindows Motif for OpenVMS
|
Previous | Contents | Index |
To load a different desktop than the one chosen during installation, set the value of the DECW$START_NEW_DESKTOP symbol in DECW$PRIVATE_APPS_SETUP.COM to either TRUE (for the New Desktop) or FALSE (for the Traditional DECwindows Desktop).
If file SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM does not already exist, create it from the template, as follows:
$ COPY SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.COM |
Enable use of IPv6 by defining the global symbol DECW$IPV6_SUPPORT in the DECW$PRIVATE_APPS_SETUP.COM file. Users can override the resulting systemwide logical, if required. Define the symbol using one of the following values:
The default behavior of this logical provides display name and client-server connection functionality identical to previous versions of DECwindows Motif.
The TCP_IS_INET6 option uses the TCP/IP Services getaddrinfo function instead of the gethostbyaddr function. TCP/IP Services does not support use of its getaddrinfo function from within AST routines. HP recommends that you use the DISABLED option if your application opens the DECwindows transport from within an AST routine. All DECwindows Motif applications support the TCP_IS_INET6 option. |
You can substitute the default HP logo with an alternate logo by running a separate 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:
To create a custom logo, do the following:
$ COPY SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$SPECIFIC:[SYSMGR]DECW$PRIVATE_APPS_SETUP.COM/LOG |
$ DECW$LOGINLOGO == "SYS$MANAGER:MYLOGO.COM" |
$ RUN DECW$EXAMPLES:ICO |
$ @SYS$STARTUP:DECW$STARTUP RESTART |
If a license for DECwindows Motif has not been registered for the SYSTEM account, DECwindows does not display customized login logos. This can occur on systems with DECwindows Motif personal-use licenses that do not include SYSTEM on the list of authorized DECwindows users.
To display a customized logo on a DECwindows Motif with a personal-use license, add the following definition to the SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM file:
$ DECW$LOGINLOGOSUB == "TRUE" |
After editing the setup file, restart DECwindows Motif, as follows:
$ @SYS$MANAGER:DECW$STARTUP RESTART |
DECwindows Motif login starts the logo process as a subprocess instead of
as a detached process.
4.4.6 Displaying Console Messages
You can choose to display operator messages (OPCOM) in the console window using the Console Window application. The console window is a six-line display area at the top of the screen.
If you select an alternate port (other than OPA0:) for console communications, the DECwindows Console Window is disabled and console broadcasts are enabled. Refer to the owner's guide for your workstation for information about selecting the Alternate Console port. |
Specify how to display messages by defining the global symbol DECW$CONSOLE_SELECTION in the DECW$PRIVATE_APPS_SETUP.COM file. Enter one of the following values: WINDOW, DISABLE, or ENABLE.
$ DECW$CONSOLE_GEOMETRY == "+0-0" |
Although ENABLE was the default value in previous releases of DECwindows Motif, it is recommended that you do not use this option. Displaying console messages by default in the console window can corrupt the contents of the workstation display. |
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 Example 4-1, DECW$SESSIONCOM is defined in DECW$PRIVATE_APPS_SETUP.COM to point to the private command procedure SYS$MANAGER: PRIVATE_SESSIONCOM.COM. The default command file is SYS$MANAGER:DECW$STARTSM.COM.
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.
With this method, the following startup command procedures (normally executed from DECW$STARTSM.COM) do not run: SYLOGIN.COM, LOGIN.COM, DECW$SYLOGIN.COM, and DECW$LOGIN.COM. |
To modify the Session Manager command procedure:
Example 4-1 Using a Private Session Manager Command File |
---|
$ 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 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$TRNLNM("DECW$DISPLAY") $ RUN/DETACHED/OUTPUT='display' SYS$SYSTEM:DECW$MWM (1) $ RUN SYS$SYSTEM:DECW$BOOKREADER $ endsession := $DECW$ENDSESSION (2) $ endsession -noprompt (3) $ STOP/ID=0 (4) |
$ DECW$SESSIONCOM :== SYS$MANAGER:PRIVATE_SESSIONCOM.COM |
$ COPY SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.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 runs login command files but does not display the Session Manager menu bar. With this method, 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 running 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 Section 4.4.7.1 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.EXE, so the private command procedure does not need to do so.
To modify the Session Manager executable file:
Example 4-2 Modifying the Session Manager 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 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$TRNLNM("DECW$DISPLAY") $ RUN/DETACHED/OUTPUT='display' SYS$SYSTEM:DECW$MWM (1) $ RUN SYS$SYSTEM:DECW$BOOKREADER $ endsession := $DECW$ENDSESSION (2) $ endsession -noprompt (3) $ STOP/ID=0 (4) |
$ DECW$SESSIONMAIN :== @SYS$MANAGER:PRIVATE_SESSIONMAIN.COM |
$ COPY SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$COMMON:[SYSMGR]DECW$PRIVATE_APPS_SETUP.COM |
$ @SYS$MANAGER:DECW$STARTUP RESTART |
After entering the user name and password of the dedicated account,
Bookreader starts and the Session Manager menu bar is not displayed.
When the user exits Bookreader, the PRIVATE_SESSIONMAIN.COM procedure
performs an End Session operation and then logs out. The End Session
command displays a DECwindows Start Session screen.
4.4.7.3 Modifying the Session Manager Profile File
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, you can limit user access to applications.
With this method, the Session Manager 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:
Do not remove Window Manager from the automatic startup list. |
To test your changes, log in to the dedicated account from the DECwindows login box. Bookreader and Session Manager should start up by default, and you should not be able to start any other application. To log out, choose End Session from the Session Manager menu.
If you decide to make the account nondedicated again, or if you want to
make changes in a dialog box that you have removed from the system menu
bar, delete or rename the file VUE$PROFILE.VUE$DAT in the dedicated
account's SYS$LOGIN directory.
4.4.8 Creating a Custom Bookreader Directory
When you start Bookreader, the system uses the logical name DECW$BOOK to locate the file LIBRARY.DECW$BOOKSHELF. By default, the logical name DECW$BOOK equates to SYS$SYSROOT:[DECW$BOOK]. You can create a private directory containing the file LIBRARY.DECW$BOOKSHELF.
To do this, you need to create the directory and then define a global symbol in the DECW$PRIVATE_APPS_SETUP.COM file.
To create a private Bookreader directory called SYS$COMMON: [DECW$BOOK_LOCAL], you need to:
$ CREATE/DIRECTORY/PROTECTION=WORLD:R - _$ SYS$COMMON:[DECW$BOOK_LOCAL] |
$ COPY SYS$SYSROOT:[DECW$BOOK]LIBRARY.DECW$BOOKSHELF - _$ SYS$COMMON:[DECW$BOOK_LOCAL]/LOG |
$ COPY SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.TEMPLATE - _$ SYS$MANAGER:DECW$PRIVATE_APPS_SETUP.COM/LOG |
$ DECW$BOOK == "SYS$COMMON:[DECW$BOOK_LOCAL]" |
$ @SYS$MANAGER:DECW$STARTUP RESTART |
Previous | Next | Contents | Index |