diff options
Diffstat (limited to 'x11vnc/win_utils.c')
-rw-r--r-- | x11vnc/win_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/win_utils.c b/x11vnc/win_utils.c index 88c3987..f923262 100644 --- a/x11vnc/win_utils.c +++ b/x11vnc/win_utils.c @@ -305,7 +305,7 @@ int pick_windowid(unsigned long *num) { set_env("DISPLAY", use_dpy); } /* id */ - if (no_external_cmds) { + if (no_external_cmds || !cmd_ok("id")) { rfbLogEnable(1); rfbLog("cannot run external commands in -nocmds mode:\n"); rfbLog(" \"%s\"\n", "xwininfo"); |