SunSolve Internal

 

  Simple Search | Advanced Search | Product Search | Tips | Investigation Wizard

 Search for in

Printer Friendly Page ] [ E-mail this Document to Someone ]
Was this document useful? Yes or No ]

Jump to
Infodoc ID   Synopsis   Date
13598   Adding alternate window managers from CDE's dtlogin   7 Jan 1997

Description Top
Adding Alternate Window Managers to the dtlogin options/sessions Menu.


This example uses mwm to add window managers
to the list, and assumes that mwm
is installed in its standard location from
the Software Developers Kit (SDK), which is
/opt/SUNWmfwm/bin/mwm

Three files need to be added:
- /usr/dt/config/C/Xresources.d/Xresources.mwm
- /usr/dt/config/Xsession.mwm
- /usr/dt/config/Xsession.mwm2

1. The easiest way to do this is to enter the following:
csh
setenv CONFIG /usr/dt/config
setenv RESOURCE /usr/dt/config/C/Xresources.d
cp $RESOURCE/Xresources.ow $RESOURCE/Xresources.mwm
cp $CONFIG/Xsession.ow $CONFIG/Xsession.mwm
cp $CONFIG/Xsession.ow2 $CONFIG/Xsession.mwm2


2. Modify the $RESOURCE/Xresources.mwm
FROM:
Dtlogin*altDtName:      OpenWindows Desktop
Dtlogin*altDtKey:       /usr/openwin/bin/olwm
Dtlogin*altDtStart:     /usr/dt/config/Xsession.ow
Dtlogin*altDtLogo:      OWlogo

TO:
Dtlogin*altDtName:      Mwm Desktop
Dtlogin*altDtKey:       /opt/SUNWmfwm/bin/mwm
Dtlogin*altDtStart:     /usr/dt/config/Xsession.mwm
Dtlogin*altDtLogo:      <What ever .pm file you like>

3. Put the .pm file in /etc/dt/appconfig/icons/C. To see 
what you have by default, go to /usr/dt/appconfig/icons/C

4. Modify the $CONFIG/Xsession.mwm
FROM:
        export SDT_ALT_SESSION="/usr/dt/config/Xsession.ow2"
TO:
        export SDT_ALT_SESSION="/usr/dt/config/Xsession.mwm2"

and 
FROM:
if [ -z "$SDT_ALT_HELLO" ]
then
  if [ -x $DTDSPMSG ]; then
     export SDT_ALT_HELLO="/usr/dt/bin/dthello -string '`$DTDSPMSG -s 37
/usr/dt/
lib/nls/msg/$LANG/dthello.cat 1 'Starting the OpenWindows Desktop'`' &"
  else
     export SDT_ALT_HELLO="/usr/dt/bin/dthello -string 'Starting the
OpenWindows
Desktop' &"
  fi
fi

TO:
if [ -z "$SDT_ALT_HELLO" ]
then
  if [ -x $DTDSPMSG ]; then
     export SDT_ALT_HELLO="/usr/dt/bin/dthello -string 'Starting the Motif
Deskto
p' &"
  else
     export SDT_ALT_HELLO="/usr/dt/bin/dthello -string 'Starting the Motif
Deskto
p' &"
  fi
fi


5. Modify the $CONFIG/Xsession.mwm2:
Add the following two lines to the beginning of the file:

OW_WINDOW_MANAGER=/opt/SUNWmfwm/bin/mwm
export OW_WINDOW_MANAGER
Product Area Windows
Product CDE
OS any
Hardware any

Top

SunWeb Home SunWeb Search SunSolve Home Simple Search

Sun Proprietary/Confidential: Internal Use Only
Feedback to SunSolve Team