Tkinter and X11

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philippe C. Martin

    #1

    Tkinter and X11

    Hi,

    Is there anything that prevents tkinter from running prior to login to an
    X11 session: as the X server is already up ?

    Regards,


    Philippe



  • jepler@unpythonic.net

    #2
    Re: Tkinter and X11

    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("re name", "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

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (GNU/Linux)

    iD8DBQFDb4K/Jd01MZaTXX0RAtt RAJ9PlTihtNz8VO 0c84rVRFv7tV8Xi wCcCYrz
    obekD7SbZ1xstV2 asc/aXW4=
    =YB+f
    -----END PGP SIGNATURE-----

    Comment

    • Philippe C. Martin

      #3
      Re: Tkinter and X11

      Thanks jeff,

      I actually want that Tkinter application to be the greater: replace gdm....

      Still feasible as far as Tkinter is conserned ?

      Thanks and regards,

      Philippe


      jepler@unpython ic.net wrote:
      [color=blue]
      > 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("re name", "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[/color]

      Comment

      Working...