Xvnc modification help

Brendon Oliver brendono "at" softcentre.com.au
Thu, 30 Mar 2000 02:02:54 +0000


Hi,

from vncserver:

$vncUserDir = "$ENV{'HOME'}/.vnc";

why not add the following line immediately following the above line:

$ENV{'VNCUSERDIR'} = $vncUserDir;

That will set VNCUSERDIR in the environment to wherever $vncUserDir
points, then have Xvnc get it via call to getenv?

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...

..and saves having to add an additional cmd line argument to Xvnc.

just my $0.02...

> But $vncUserDir is in vncserver; there's no concept of the users home
> directory in Xvnc itself.  So I'd have to either ignore the $vncUserDir
> and hardcode a path, or set up a way for Xvnc to take $vncUserDir as an
> argument, which would require modifying vncserver to supply said argument.

-- 
Brendon Oliver
Soft Centre Pty. Ltd.
ph +61 3 9419 6999  | mailto:brendono "at" softcentre.com.au
fx +61 3 9419 9955  | http://www.softcentre.com.au

---------------------------------------------------------------------
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
---------------------------------------------------------------------