Package: vnc4server
Version: 4.1.1+X4.3.0-37
Severity: wishlist
Tags: patch
Dear Maintainer,
it would be nice, if vnc4server has an option '-autokill' to
stop the vncserver as soon as the VNC session run by xstartup
ends.
Appended is a patch for the suggested feature (based on the vncserver
script from tigervnc).
*** vnc4server.orig 2012-10-13 11:55:47.966225123 +0200
--- vnc4server 2012-10-13 11:54:43.389130288 +0200
***************
*** 314,320 ****
}
$ENV{VNCDESKTOP}= $desktopName;
! system("$xstartup >> " . "edString($desktopLog) . " 2>&1 &");
exit;
--- 314,324 ----
}
$ENV{VNCDESKTOP}= $desktopName;
! if ($opt{'-autokill'}) {
! system("($xstartup; $0 -kill :$displayNumber) >> " . "edString($desktopLog) . " 2>&1 &");
! } else {
! system("$xstartup >> " . "edString($desktopLog) . " 2>&1 &");
! }
exit;