Xvnc modification help

jmv16@cornell.edu jmv16 "at" cornell.edu
Fri, 31 Mar 2000 03:03:31 +0000


On Thu, 30 Mar 2000, Brendon Oliver <brendono "at" softcentre.com.au> wrote:

> $ENV{'VNCUSERDIR'} = $vncUserDir;
>
> That will set VNCUSERDIR in the environment to wherever $vncUserDir
> points, then have Xvnc get it via call to getenv?

Hmm.  I guess that's reasonable, provided I make sure there isn't one set 
already.  (How to do that in Perl?)

Wez & company -- I don't suppose you want to standardize on some
environment variable that, if set, would be used by vncserver instead of
the default ~/.vnc/?  (Perhaps even have vncserver set it as suggested
above if it doesn't exist at runtime, if you want to make me really
happy.)


> If you don't want to change vncserver, as long as a user already has
> VNCUSERDIR set in their environment (by either .profile, .login, or by
> some other means) it should still work...

True...but people won't, so I'll either have to require anyone who wants 
to run stuff on connect/disconnect to set such a variable, or come up 
with a default.

Wait a second...here's possibly a much better idea that fixes pretty much 
all the problems.  How about I just check for the existence of certain 
variables (VNC_RUN_ON_CONNECT and VNC_RUN_ON_DISCONNECT are unambiguous 
but pretty ugly, anybody have better ideas?) containing full path to a 
command, and if they exist, run them when appropriate.

 
-- 
Jeffrey M. Vinocur   *   jmv16 "at" cornell.edu
http://www.people.cornell.edu/pages/jmv16/

---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------