Hello,

I am having an incomprehensible (at least to me) problem with vnc
4.0-0b4 under RedHat Linux 7.3.  When I start it from my .xsession, it
dies as soon as the x server dies.  If I start it manually, it keeps
running until I kill it explicitly.  I would like it to continue running
even when started from my .xsession.

On a faster workstation running RedHat Linux 9 and vnc 4.0-0b4 but with
the same .xsession/xstartup configuration, I haven't seen the same problem
(though I haven't tested it for very long).

Background: I am trying to use VNC to support desk-hopping from work to
home.  I would like the following behavior:

1. When I log in via gdm, an Xvnc server should be started if one is not
already running, then vncviewer should start in fullscreen mode making a
connection to the server.

2. If I log out by exiting my window manager, then Xvnc should be
killed.  This is easily accomplished by putting "vncserver -kill
$DISPLAY" at the end of ~/.vnc/xstartup.

3. If I log out by killing X (i.e., on display :0), then I would like
Xvnc to continue running so that my virtual session can be re-connected to.

Previously I have used /etc/init.d/vncserver to start vncservers, but I
like the new solution better because it gives the user control over when
to kill and/or re-start Xvnc.

This mostly works; my xsession correctly start Xvnc when needed then
connects a viewer to it, and if I exit my window manager within the Xvnc
session then Xvnc is killed as desired.  However, if I kill X (the
external session) using Ctrl-Alt-Backspace, or close the vncviewer via
the F8 menu, for some reason Xvnc dies too.  In this case it doesn't
delete the ~/.vnc/hostname:1.pid file.  I've tried running vncserver
with nohup but that doesn't help.

Strangely, if I start Xvnc manually (even from an xterm within a
"failsafe" X session) then it runs normally and survives the termination
of the external X server and/or vncviewer.  This is the desired behavior.

I've compared the environment between the case where Xvnc is started by
.xsession and when it is started manually, but I don't see any
significant differences.

Does anybody have any ideas?

If anybody is interested in seeing the Python scripts that I am using,
let me know and I will post them to the list.

Thanks for any help!
Michael

-- 
Michael Haggerty
[EMAIL PROTECTED]
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to