[H-GEN] [NON-MEMBER BOUNCE] how to change SunOS window managers?

Jason Henry Parker jasonp at uq.net.au
Fri Apr 27 23:24:18 EDT 2001


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

[There are going to be a few more of these today.  I have subscribed
all non-member bouncers to the relevant -post lists.  Replies to the
list or James, not me, yadda-yadda-yadda.]

Date: Fri, 27 Apr 2001 10:03:09 +1000 (EST)
From: James McPherson <jmcp at fodder.Aus.Sun.COM>
To: leanned at phys.ufl.edu
cc: general at humbug.org.au
Subject: Re: [H-GEN] how to change SunOS window managers?

On Thu, 26 Apr 2001, Leanne Duffy wrote:
> 
> I have no .xsession.  I still have a .dtprofile for CDE, but it now isn't
> doing much.
> 
> On Thu, 26 Apr 2001, Bruce Campbell wrote:
> 
> > Probably the local admins have changed the global xsession script
> > (/etc/opt/X<mumble>/xsession or similar) on you.  See whats in your
> > ~/.xsession vs the window manager running and (hopefully) change as
> > appropriate.
> > 

Ain't it handy to have a Sun employee on the list....:

infodoc 13598:


 13598
                 
                 Adding alternate window managers from CDE's dtlogin
                                                                                          
                                                                                           6 Jan 1997


 Status
                           Issued


 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





--
Technical Support Specialist          828 Pacific Highway
APAC Customer Care Centre             Gordon NSW 
Sun Microsystems Australia            2072

Have a Sun Support Contract? - Log/View/Update Calls on the Web
Find out how @ http://www.sun.com.au/service/osc

jason
-- 
Windows is user-friendly, but with friends like that . . .

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list