943N/A## Patch originally from Fedora - Revision 1.1 of:
830N/A## Modified to make httpd service off by default and only offered via -httpd
919N/A # Check command line options
919N/A &ParseOptions("-geometry",1,"-depth",1,"-pixelformat",1,"-name",1,"-kill",1,
919N/A "-help",0,"-h",0,"--help",0);
919N/A &Usage() if ($opt{'-help'} || $opt{'-h'} || $opt{'--help'});
919N/A if ($opt{'-pixelformat'}) {
919N/A $pixelformat = $opt{'-pixelformat'};
830N/A &CheckGeometryAndDepth();
830N/A $cmd = "Xvnc :$displayNumber";
830N/A $cmd .= " -desktop " . "edString($desktopName);
830N/A-$cmd .= " -httpd $vncJavaFiles" if ($vncJavaFiles);
830N/A+$cmd .= " -httpd $vncJavaFiles" if ($vncJavaFiles && ! $nohttpd);
830N/A $cmd .= " -auth $xauthorityFile";
830N/A $cmd .= " -geometry $geometry" if ($geometry);
830N/A $cmd .= " -depth $depth" if ($depth);
830N/A- die("\nusage: $prog [:<number>] [-name <desktop-name>] [-depth <depth>]\n".
830N/A+ die("\nusage: $prog [:<number>] [-httpd] [-name <desktop-name>] [-depth <depth>]\n".
830N/A " [-geometry <width>x<height>]\n".
830N/A " [-pixelformat rgbNNN|bgrNNN]\n".
830N/A " <Xvnc-options>...\n\n".
830N/A+Instruct Xvnc to run a mini-httpd if the VNC Java applet is found.
830N/A .B \-kill :\fIdisplay#\fP
830N/A This kills a VNC desktop previously started with vncserver. It does this by
830N/A killing the Xvnc process, whose process ID is stored in the file