diff options
author | runge <[email protected]> | 2009-12-05 14:31:31 -0500 |
---|---|---|
committer | runge <[email protected]> | 2009-12-05 14:31:31 -0500 |
commit | 6153bd69835da0e7217ae844bdba4e2ba676f981 (patch) | |
tree | 270d264e229678c29fde567f2334eace65bda185 /x11vnc/gui.c | |
parent | 00a9a0ea4d0f642b34b4423ea867099b52edf078 (diff) | |
download | libtdevnc-6153bd69835da0e7217ae844bdba4e2ba676f981.tar.gz libtdevnc-6153bd69835da0e7217ae844bdba4e2ba676f981.zip |
Update java and scripts in classes/ssl. x11vnc: declare crypt() on all platforms. more wishes.
Diffstat (limited to 'x11vnc/gui.c')
-rw-r--r-- | x11vnc/gui.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/x11vnc/gui.c b/x11vnc/gui.c index 3a05ac8..a7f2713 100644 --- a/x11vnc/gui.c +++ b/x11vnc/gui.c @@ -261,9 +261,11 @@ static void sigusr1 (int sig) { if (0) sig = 0; } +/* Most of the following mess is for wish on Solaris: */ + static char *extra_path = ":/usr/local/bin:/usr/bin/X11:/usr/sfw/bin" - ":/usr/X11R6/bin:/usr/openwin/bin:/usr/dt/bin"; -static char *wishes[] = {"wish8.4", "wish", "wish8.3", "wish8.5", "wish8.0", NULL}; + ":/usr/X11R6/bin:/usr/openwin/bin:/usr/dt/bin:/opt/sfw/bin"; +static char *wishes[] = {"wish8.4", "wish", "wish8.3", "wish8.5", "wish8.6", "wish8.7", "wishx", "wish8.0", NULL}; static void run_gui(char *gui_xdisplay, int connect_to_x11vnc, int start_x11vnc, int simple_gui, pid_t parent, char *gui_opts) { @@ -440,6 +442,15 @@ if (0) fprintf(stderr, "run_gui: %s -- %d %d\n", gui_xdisplay, connect_to_x11vnc if (!wish) { wish = strdup("wish"); } + if (getenv("WISH")) { + char *w = getenv("WISH"); + if (strcmp(w, "")) { + wish = strdup(w); + } + } + if (getenv("DEBUG_WISH")) { + fprintf(stderr, "wish: %s\n", wish); + } set_env("PATH", full_path); set_env("DISPLAY", gui_xdisplay); set_env("X11VNC_PROG", program_name); |