Solaris Common Desktop Environment: Motif Transition Guide
  Buscar sólo este libro
Descargar este libro en PDF

Solaris 2.5 Motif Window Manager

C

This appendix describes how to set up your environment to use the Solaris 2.5 Motif Window Manager (mwm) and how to access it from the OpenWindows desktop. You can run Motif clients with the OPEN LOOK Window Manager (olwm) without making further changes.
Setting Motif Window Manager as the Default72
Setting Motif Window Manager as the Default72
Enabling Quit on the Workspace Menu73
Enabling Drag and Drop for the Motif Window Manager73

Note - The Motif Window Manager provided with the Solaris 2.4 and Solaris 2.5 developer's environment is not supported by SunSoft as a run-time user product and must not be distributed to users. mwm is only included in the developer's environment for development purposes. You should use the default olwm window manager for developing applications for the OpenWindows desktop. You should use the CDE window manager dtwm for developing applications for the Solaris CDE desktop. dtwm is an upwardly compatible version of mwm specifically enhanced for CDE.

Setting Up the Motif Environment

To set up the environment to support Motif development, set the following variables in the initialization file for your shell (for example .profile for the Bourne or Korn shell or .login for the C shell).
  1. If SUNWmfwm is installed, add /opt/SUNWmfwm/bin to your PATH.

  2. Include the value /usr/dt/lib/%T/%N%S in your XFILESEARCHPATH environment variable.

  3. Set the XMBINDDIR environment variable to /usr/dt/lib/bindings.

  4. Both developers and users need to add /usr/dt/man to their MANPATH. If developers have installed the optional SUNWmfwm, they need to add /opt/SUNWmfwm/man to their MANPATH.

  5. Source the initialization file by typing. .profile for the Bourne or Korn shell, or source .cshrc for the C shell. Alternatively, you can log out and log in again so that the changes are recognized in your complete environment.

Setting Motif Window Manager as the Default

The openwin script indirectly starts the OPEN LOOK Window Manager (olwm). If you want the script to start the Motif Window Manager, set the OW_WINDOW_MANAGER environment variable:

  % setenv OW_WINDOW_MANAGER mwm  

Alternatively, you can add this to your .profile or .login file if you want to save this setting.

Note - mwm is only available if the Solaris 2.5 SUNWmfwm package is installed. This package is not available in the CDE 1.0 release.

Enabling Quit on the Workspace Menu

The Motif Window Manager does not have an option to exit mwm. Use the following steps to enable Quit on the Workspace menu.
  1. Type cp /opt/SUNWmfwm/lib/system.mwmrc $HOME/.mwmrc and press Return.

  2. Edit the $HOME/.mwmrc file and remove the leading exclamation mark (!) from the following line:

!"Quit..."   f.quit_mwm

Enabling Drag and Drop for the Motif Window Manager

To ensure the OpenWindows drag-and-drop option runs correctly with mwm, modify the openwin-sys script in /usr/openwin/lib
(/usr/openwin/lib).

  1. Become superuser. Edit the /usr/openwin/lib/openwin-sys script. Remove the # from the following line (uncomment it):

#dsdm &

  1. Save the changes and quit the file.

  2. Exit the window system and restart it.

    This change initiates the drop-site database manager and restarts the window system.