Multiple Window managers in xstartup?
Brad Keefer
bkeefer "at" cisco.com
Thu Sep 8 13:33:01 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm faced with the following situation... I have to access some Solaris
boxen
and Linux boxen, but my home directory is in shared storage that is
nfs-mounted to them all... So regardless of which server I'm on, I have the
same .vnc directory, with one xstartup file. I figured that I could get
around
this by using a simple conditional in the xstartup to figure out if it was
on
a Solaris box or Linux box. My Linux boxen seem to work fine, but trying to
use dtwm for my Solaris boxen doesn't seem to work. I just get the rootweave
desktop. Here is my xstartup file:
#!/bin/sh
os=`uname -s`
# Red Hat Linux VNC session startup script
if [ "$os" -eq "Linux" ]
then
exec /etc/X11/xinit/xinitrc
gnome-session
elif [ "$os" -eq "SunOS" ]
then
exec /usrs/bkeefer/.vnc/xinitrc
xrdb $HOME/.Xresources
DTXSERVERLOCATION="remote"
SESIONTYPE="altDt"
SDT_ALT_SESSION="/usr/dt/bin/dtsession"
SDT_ALT_HELLO="/usr/dt/bin/dthello &"
export DTXSERVERLOCATION SESIONTYPE SDT_ALT_SESSION SDT_ALT_HELLO
/usr/dt/bin/Xsession
else
fvwm
fi
Has anyone been able to make two or more window managers peacefully co-exist
in the xstartup file? Or do your fresh eyes see something that I'm just
overlooking? Just asking
- --
Brad Keefer -- TEKSystems Consultant
bkeefer "at" cisco.com
Build Environment Support (919)392-1101
==========================================
"Don't bother just to be better than your contemporaries or predecessors.
Try
to be better than yourself." -- William Faulkner
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQyAvY6JgqKjOu96LEQLxOACg+wDeFGhQbwLzyjm3BCpzvtsEM5AAoO/z
NhjCrJzEoDaw5Vm9sYrOCH8x
=WKYR
-----END PGP SIGNATURE-----