if (getenv("DISPLAY") == NULL) { set_env("DISPLAY", DisplayString(dpy)); }
int dt_cmd(char *cmd) {	int rc;	if (!cmd || *cmd == '\0') {		return 0;	}	if (no_external_cmds) {		rfbLog("cannot run external commands in -nocmds mode:\n");		rfbLog("   \"%s\"\n", cmd);		rfbLog("   dt_cmd: returning 1\n");		return 1;	}	rfbLog("running command:\n  %s\n", cmd);	usr_bin_path(0);	rc = system(cmd);	usr_bin_path(1);	if (rc >= 256) {		rc = rc/256;	}	return rc;}