blob: 0c3bc23380d8b3504a540cf137a41445b9cbbae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- vncserver.orig 2009-02-12 06:27:18.000000000 +0200
+++ vncserver 2021-03-27 08:35:57.331183132 -0400
@@ -48,10 +48,12 @@
$defaultXStartup
= ("#!/bin/sh\n\n".
- "xrdb \$HOME/.Xresources\n".
- "xsetroot -solid grey\n".
- "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
- "twm &\n");
+ "#xrdb \$HOME/.Xresources\n".
+ "#xsetroot -solid grey\n".
+ "#xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
+ "#twm &\n".
+ "# Start X session using xinitrc \n".
+ "/etc/X11/xinit/xinitrc &\n");
$xauthorityFile = "$ENV{XAUTHORITY}";
@@ -161,7 +163,9 @@
$cmd = "Xvnc :$displayNumber";
$cmd .= " -desktop " . "edString($desktopName);
-$cmd .= " -httpd $vncClasses";
+if ( -d $vncCllasses ) {
+ $cmd .= " -httpd $vncClasses";
+}
$cmd .= " -auth $xauthorityFile";
$cmd .= " -geometry $geometry" if ($geometry);
$cmd .= " -depth $depth" if ($depth);
|