Tkinter and X11

jepler at unpythonic.net jepler at unpythonic.net
Mon Nov 7 11:37:19 EST 2005


There should be no problem with this.  After all, even the "greeter" is just an
X application.  Depending on which login manager you use (xdm/kdm/gdm/whatever)
the details of getting your Tkinter app to actually be run will vary, though.
In gdm, it looks like adding it to the file /etc/X11/gdm/Init/default may be
the ticket.

It is probably best to run
    app.tk.call("rename", "send", "")
in your program, for the reasons outlined in the send(n) manpage:
    SECURITY
        The  send  command is potentially a serious security loophole. On Unix,
        any application that can connect to your X server can send  scripts  to
        your  applications.   These  incoming  scripts  can use Tcl to read and
        write your files and invoke subprocesses under your  name.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20051107/66e7c629/attachment.sig>


More information about the Python-list mailing list