xstartup
Tristan Richardson
tjr "at" orl.co.uk
Tue, 16 Jun 1998 12:06:20 +0000
>>>>>> Angel Martin Alganza <alganza "at" ss20.mpi-seewiesen.mpg.de> writes:
>
> Is it possible to run different Xvnc processes with different xstartup files?
> If so, how do you indicate it to the xvncviewer script?
>
You can do what I think you want by giving each desktop a different name,
and then testing the VNCDESKTOP environment variable inside xstartup.
For example your xstartup might look like this:
#!/bin/sh
xrdb $HOME/.Xresources
xterm -geometry 80x24+10+10 -ls &
case "$VNCDESKTOP" in
fancy)
wmaker &
;;
plain)
xsetroot -solid grey
twm &
;;
esac
Then you can start a "fancy" desktop with:
% vncserver -name fancy
New 'fancy' desktop is wibble:3
Starting applications specified in /home/zz/.vnc/xstartup
Log file is /home/zz/.vnc/wibble:3.log
And a "plain" desktop with:
% vncserver -name plain
New 'plain' desktop is wibble:4
Starting applications specified in /home/zz/.vnc/xstartup
Log file is /home/zz/.vnc/wibble:4.log
Then view them with "vncviewer wibble:3" or "vncviewer wibble:4" as
appropriate.
Cheers
Tristan
+--------------------------------------------------------------------+
| Tristan Richardson Email: tjr "at" orl.co.uk |
| ORL Tel: +44 1223 343000 |
| 24a Trumpington Street Fax: +44 1223 313542 |
| Cambridge, CB2 1QA, UK WWW: http://www.orl.co.uk/ |
+--------------------------------------------------------------------+
| ORL - The Olivetti & Oracle Research Laboratory |
+--------------------------------------------------------------------+