Launching at startup, and multiple entries in xstartup

Matt Keyes matt_keyes "at"
Wed, 20 Jun 2001 22:39:40 +0000

Well, in case anyone is interested in the result...

I found this, haven't tried it, but I think it will work.  Stupid me, I
thought xstartup should be in perl, but rather it is just sh!
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:
xrdb $HOME/.Xresources
xterm -geometry 80x24+10+10 -ls &
case "$VNCDESKTOP" in
    wmaker &
    xsetroot -solid grey
    twm &
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
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at"
See also: