Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


  How can I get Tk to use `send` (I get security error messages)? Does `send` work on Windows/Mac?
 
 Alternate forms of this question often mention that Tk `send` is broken,
or ask how to use xauth.

Since Tk 3.3, the X11 xauth security mechanism is used.  While this
provides more security, it does require the user to do a bit more setup
to use the `send` command.  The man page for `send` describes how to
solve this question for the average user.  For those interested in
further reading on auth, look at
ftp://ftp.neosoft.com/pub/tcl/alcatel/docs/Xauthority.gz.

You can configure Tk to not depend on xauth by modifying "Makefile.in"
to comment out the following:

# To turn off the security checks that disallow incoming sends when
# the X server appears to be insecure, reverse the comments on the
# following lines:
#SECURITY_FLAGS =
SECURITY_FLAGS = -DTK_NO_SECURITY

*Note:* It`s not a good idea to disable security if security is an issue
for you.  You may want to consult your sysadmin before doing this.

`send` is supported on the Mac or Windows platforms as of Tk8.1.