summaryrefslogtreecommitdiffstats
path: root/x11vnc
diff options
context:
space:
mode:
authorrunge <runge>2007-05-19 03:17:58 +0000
committerrunge <runge>2007-05-19 03:17:58 +0000
commite9353e8d2919a6f2947602cb3c42317d82fb26d8 (patch)
tree11be3eda448693ce3fc472d99026f4a39520b5f3 /x11vnc
parent13ad9f494048fbcc983f580caaec0119153f29c8 (diff)
downloadlibtdevnc-e9353e8d2919a6f2947602cb3c42317d82fb26d8.tar.gz
libtdevnc-e9353e8d2919a6f2947602cb3c42317d82fb26d8.zip
More fixes to ultra java viewer, ultrafilexfer debugging output, fix -loop in .x11vncrc case.
Diffstat (limited to 'x11vnc')
-rw-r--r--x11vnc/README10
-rw-r--r--x11vnc/x11vnc.12
-rw-r--r--x11vnc/x11vnc.c32
-rw-r--r--x11vnc/x11vnc_defs.c2
4 files changed, 24 insertions, 22 deletions
diff --git a/x11vnc/README b/x11vnc/README
index 22012d1..434574e 100644
--- a/x11vnc/README
+++ b/x11vnc/README
@@ -1,5 +1,5 @@
-x11vnc README file Date: Wed May 16 17:16:56 EDT 2007
+x11vnc README file Date: Fri May 18 22:13:05 EDT 2007
The following information is taken from these URLs:
@@ -692,8 +692,8 @@ make
"-ncache 12". The unix Enhanced TightVNC Viewer [99]ssvnc has a
nice [100]-ycrop option to help hide the pixel cache area from
view.
- * The [101]UltraVNC Java viewer has been patched to support SSL as
- the TightVNC viewer had been previously. The UltraVNC Java
+ * The [101]UltraVNC Java viewer has been enhanced to support SSL (as
+ the TightVNC viewer had been previously). The UltraVNC Java
supports ultravnc filetransfer, and so can be used as a VNC viewer
on Unix that supports ultravnc filetransfer. It is in the
classes/ssl/UltraViewerSSL.jar file (that is pointed to by
@@ -10934,7 +10934,7 @@ x11vnc: a VNC server for real X displays
Here are all of x11vnc command line options:
% x11vnc -opts (see below for -help long descriptions)
-x11vnc: allow VNC connections to real X11 displays. 0.9.1 lastmod: 2007-05-16
+x11vnc: allow VNC connections to real X11 displays. 0.9.1 lastmod: 2007-05-18
x11vnc options:
-display disp -auth file -N
@@ -11048,7 +11048,7 @@ libvncserver-tight-extension options:
% x11vnc -help
-x11vnc: allow VNC connections to real X11 displays. 0.9.1 lastmod: 2007-05-16
+x11vnc: allow VNC connections to real X11 displays. 0.9.1 lastmod: 2007-05-18
(type "x11vnc -opts" to just list the options.)
diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1
index fe0d9d7..52d3be8 100644
--- a/x11vnc/x11vnc.1
+++ b/x11vnc/x11vnc.1
@@ -2,7 +2,7 @@
.TH X11VNC "1" "May 2007" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
- version: 0.9.1, lastmod: 2007-05-16
+ version: 0.9.1, lastmod: 2007-05-18
.SH SYNOPSIS
.B x11vnc
[OPTION]...
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c
index 2d3aad0..cdf31ab 100644
--- a/x11vnc/x11vnc.c
+++ b/x11vnc/x11vnc.c
@@ -157,7 +157,7 @@ static int limit_shm(void);
static void check_rcfile(int argc, char **argv);
static void immediate_switch_user(int argc, char* argv[]);
static void print_settings(int try_http, int bg, char *gui_str);
-static void check_loop_mode(int argc, char* argv[]);
+static void check_loop_mode(int argc, char* argv[], int force);
static void check_cursor_changes(void) {
@@ -782,7 +782,7 @@ static void check_rcfile(int argc, char **argv) {
argv2[argc2++] = strdup(argv[0]);
if (! norc) {
- char line[4096], parm[100], tmp[101];
+ char line[4096], parm[400], tmp[401];
char *buf, *tbuf;
struct stat sbuf;
int sz;
@@ -873,7 +873,7 @@ static void check_rcfile(int argc, char **argv) {
q++;
}
- if (i >= 100) {
+ if (i >= 400) {
fprintf(stderr, "invalid rcfile line: %s/%s\n",
p, buf);
exit(1);
@@ -884,10 +884,17 @@ static void check_rcfile(int argc, char **argv) {
exit(1);
}
if (parm[0] == '-') {
- strncpy(tmp, parm, 100);
+ strncpy(tmp, parm, 400);
} else {
tmp[0] = '-';
- strncpy(tmp+1, parm, 100);
+ strncpy(tmp+1, parm, 400);
+ }
+
+ if (strstr(tmp, "-loop") == tmp) {
+ if (! getenv("X11VNC_LOOP_MODE")) {
+ check_loop_mode(argc, argv, 1);
+ exit(0);
+ }
}
argv2[argc2++] = strdup(tmp);
@@ -1306,10 +1313,13 @@ static void print_settings(int try_http, int bg, char *gui_str) {
}
-static void check_loop_mode(int argc, char* argv[]) {
+static void check_loop_mode(int argc, char* argv[], int force) {
int i;
int loop_mode = 0, loop_sleep = 2000, loop_max = 0;
+ if (force) {
+ loop_mode = 1;
+ }
for (i=1; i < argc; i++) {
char *p = argv[i];
if (strstr(p, "--") == p) {
@@ -1562,7 +1572,7 @@ int main(int argc, char* argv[]) {
/* check for -loop mode: */
- check_loop_mode(argc, argv);
+ check_loop_mode(argc, argv, 0);
dtime0(&x11vnc_start);
@@ -1773,14 +1783,6 @@ int main(int argc, char* argv[]) {
connect_once = 0;
} else if (strstr(arg, "-loop") == arg) {
; /* handled above */
-#if LIBVNCSERVER_HAVE_SETSID
- bg = 1;
- opts_bg = bg;
-#else
- fprintf(stderr, "warning: -bg mode not supported.\n");
-#endif
- } else if (strstr(arg, "-loop") == arg) {
- ; /* handled above */
} else if (!strcmp(arg, "-timeout")) {
CHECK_ARGC
first_conn_timeout = atoi(argv[++i]);
diff --git a/x11vnc/x11vnc_defs.c b/x11vnc/x11vnc_defs.c
index 3dec3a8..2642ca0 100644
--- a/x11vnc/x11vnc_defs.c
+++ b/x11vnc/x11vnc_defs.c
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int xdamage_base_event_type = 0;
/* date +'lastmod: %Y-%m-%d' */
-char lastmod[] = "0.9.1 lastmod: 2007-05-16";
+char lastmod[] = "0.9.1 lastmod: 2007-05-18";
/* X display info */