>> Should I get out of the CDE environment, and install the X11R6, (I realize
>> CDE is based on X11R6) or ...?
In the CDE environment the following user created files do the trick for me -
and allow me to use the sessions menu on the dtlogin screen to switch between
them as desired. I'll show you the fvwm95 setup I use; the changes for
another window manager should be obvious :-)
You should also be able to create your own .xinitrc and .xsession files; try
selecting the openwindows session from the dtlogin screen and see if that
enables the system to see your $HOME/.* files...
And, no, I don't work in the CDE or windows groups...
-John
/etc/dt/config/C/Xresources.d/Xresources.fvwm95
/etc/dt/appconfig/icons/C/fvwm2logo.pm
/etc/dt/appconfig/icons/C/fvwm2logo.bm
/etc/dt/config/Xinitrc.fvwm95
/etc/dt/config/Xsession.fvwm95
/etc/dt/config/Xsession.fvwm95-2
An explanation of each:
::::::::::::::
/etc/dt/config/C/Xresources.d/Xresources.fvwm95
::::::::::::::
!!######################################################################
!! Xresources.fvwm95
!!######################################################################
!! This file used by the Solaris Desktop Login manager
Dtlogin*altDtsIncrement: True
Dtlogin*altDtName: fvwm95 Desktop
Dtlogin*altDtKey: /opt/X11/bin/fvwm95
Dtlogin*altDtStart: /etc/dt/config/Xsession.fvwm95
Dtlogin*altDtLogo: fvwm2logo
!! End of Xresources file
For each new window manager session configuration you want,
create another template file in
/etc/dt/config/C/Xresources.d/
with a unique name of the form "Xresources.$unique_tag" The unique_tag
is arbitrary and is only to alphabetize/order the entries found there.
The property names:
Dtlogin*altDtsIncrement: Always leave set to "True"
Dtlogin*altDtName: The title displayed on the session menus
and startup splash screen
Dtlogin*altDtKey: The name of a file, that if it exists,
enables this session to be shown as
a choice to the user. If this file
is not found, the choice is not shown
on the session menu.
This lets you predefine many session
types, even if the software to support
them isn't installed on a particular
system.
Dtlogin*altDtStart: The startup script for this session.
This script is shown below, and needs
to be customized to start the right
window manager ...
Dtlogin*altDtLogo: The name of a logo to display on the
dtlogin screen when this session is
chosen.
::::::::::::::
/etc/dt/appconfig/icons/C/fvwm2logo.pm
/etc/dt/appconfig/icons/C/fvwm2logo.bm
::::::::::::::
The color and monochrome logo pictures used by Dtlogin*altDtLogo
above...
::::::::::::::
/etc/dt/config/Xinitrc.fvwm95
::::::::::::::
#####################################################################
### File: Xinitrc.fvwm95
### Default Location: /etc/dt/config/Xinitrc.fvwm95
### Purpose: fvwm95 session start script
### Invoked by: /usr/dt/config/Xsession.fvwm95-2
#####################################################################
if [ -f $HOME/.Xdefaults ]; then
xrdb -merge $HOME/.Xdefaults # Load Users X11
# resource database
fi
$OPENWINHOME/lib/openwin-sys # OpenWindows system
# initialization
eval `locale_env -env` # Set Locale Environment
/opt/X11/bin/fvwm95 & wmpid=$! # Start your favorite
# Window Manager here
dsdm & # OpenLook Drop Site Database
wait $wmpid # Wait for wm to exit
::::::::::::::
/etc/dt/config/Xsession.fvwm95
::::::::::::::
#!/bin/ksh
#####################################################################
### File: Xsession.fvwm95
### Default Location: /etc/dt/config/Xsession.fvwm95
### Purpose: fvwm95 session start script
### Invoked by: Solaris Desktop Login Manager (dtlogin)
#####################################################################
DTDSPMSG=/usr/dt/bin/dtdspmsg
if [ -z "$SESSIONTYPE" ]; then
export SESSIONTYPE="altDt"
fi
if [ -z "$DTSTARTIMS" ]; then
export DTSTARTIMS="False"
fi
if [ -z "$SDT_ALT_SESSION" ]; then
export SDT_ALT_SESSION="/etc/dt/config/Xsession.fvwm95-2"
fi
if [ -z "$SDT_ALT_HELLO" ]; then
export SDT_ALT_HELLO
SDT_ALT_HELLO="/usr/dt/bin/dthello -bground turquoise4 \
-string 'Starting the fvwm95 Desktop' &"
fi
fi
export SDT_NO_DSDM=""
/usr/dt/bin/Xsession
::::::::::::::
/etc/dt/config/Xsession.fvwm95-2
::::::::::::::
#!/bin/ksh
#####################################################################
### File: Xsession.fvwm95-2
### Default Location: /etc/dt/config/Xsession.fvwm95-2
### Purpose: FVWM-95 Desktop start script
### Invoked by: /usr/dt/bin/Xsession
#####################################################################
# First a little namespace cleanup of vars associated with this
# (and /etc/dt/bin/Xsession.fvwm95) scripts.
unset SDT_ALT_SESSION
unset SDT_ALT_HELLO
unset SDT_NO_DSDM
#
# Find "xinitrc" file by standard precedence rules and start
# the user's OpenWindows Desktop.
#
DEFAULT_XINITRC="/etc/dt/config/Xinitrc.fvwm95"
HOME_XINITRC="$HOME/.xinitrc"
PATH=/usr/dt/bin:$PATH:/usr/openwin/bin:/opt/X11/bin
if [ -z "$XINITRC" ]; then
if [ -f $HOME_XINITRC ]; then
XINITRC=$HOME_XINITRC
else
XINITRC=$DEFAULT_XINITRC
fi
fi
echo "fvwm95 Desktop Login"
if [ -f $XINITRC ]; then
echo "using xinitrc file: $XINITRC"
/bin/ksh $XINITRC
else
echo "xinitrc file: $XINITRC not found"
if [ -f $DEFAULT_XINITRC ]; then
echo "using xinitrc: $DEFAULT_XINITRC"
/bin/ksh $DEFAULT_XINITRC
fi
fi
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Sep 26 1997 - 16:52:28 BST