diff options
Diffstat (limited to 'x11vnc/tkx11vnc.h')
-rw-r--r-- | x11vnc/tkx11vnc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11vnc/tkx11vnc.h b/x11vnc/tkx11vnc.h index 32ccbc2..cc60b8b 100644 --- a/x11vnc/tkx11vnc.h +++ b/x11vnc/tkx11vnc.h @@ -1666,6 +1666,7 @@ "proc set_x11_display {name} {\n" " global x11_display\n" " set x11_display \"x11vnc X display: $name\"\n" +" wm title . \"tkx11vnc - $name\"\n" "}\n" "proc set_vnc_display {name} {\n" " global vnc_display\n" @@ -1677,6 +1678,7 @@ "}\n" "proc no_x11_display {} {\n" " set_x11_display \"(*none*)\"\n" +" wm title . \"tkx11vnc\"\n" "}\n" "proc no_vnc_display {} {\n" " set_vnc_display \"(*none*)\"\n" @@ -2397,6 +2399,7 @@ "\n" "proc run_remote_cmd {opts} {\n" " global menu_var x11vnc_prog x11vnc_cmdline x11vnc_xdisplay\n" +" global x11vnc_auth_file\n" "\n" " set debug [in_debug_mode]\n" "\n" @@ -2419,6 +2422,10 @@ " lappend cmd \"-display\"\n" " lappend cmd $x11vnc_xdisplay\n" " }\n" +" if {$x11vnc_auth_file != \"\"} {\n" +" lappend cmd \"-auth\"\n" +" lappend cmd $x11vnc_auth_file\n" +" }\n" " lappend cmd \"-sync\"\n" " foreach word $opts {\n" " lappend cmd $word\n" @@ -2507,6 +2514,7 @@ "# main:\n" "\n" "global env x11vnc_prog x11vnc_cmdline x11vnc_xdisplay x11vnc_connect;\n" +"global x11vnc_auth_file\n" "global helpall helptext helpremote helplabel hostname;\n" "global all_settings reply_xdisplay always_update\n" "global max_text_height max_text_width\n" @@ -2591,6 +2599,13 @@ " set x11vnc_xdisplay \":0\";\n" "}\n" "\n" +"if {[info exists env(X11VNC_AUTH_FILE)]} {\n" +" set x11vnc_auth_file $env(X11VNC_AUTH_FILE)\n" +"} else {\n" +" set x11vnc_auth_file \"\"\n" +"}\n" +"\n" +"\n" "set hostname [exec uname -n]\n" "#puts [exec env]\n" "#puts \"x11vnc_xdisplay: $x11vnc_xdisplay\"\n" |