nix logon in Python

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

    #1

    nix logon in Python

    Hi,

    Are there any (even prototypes/proof of concept) gdm/kdm/xdm.../-style
    packages written in Python ?

    Regards,

    Philippe

  • Philippe Martin

    #2
    Re: nix logon in Python

    Philippe Martin wrote:
    [color=blue]
    > Hi,
    >
    > Are there any (even prototypes/proof of concept) gdm/kdm/xdm.../-style
    > packages written in Python ?
    >
    > Regards,
    >
    > Philippe[/color]


    I guess to further define my problem:

    I am looking for clues as to how to launch an X11 session (remote or not)
    from a Python-TKinter-based application.

    I got (a few months ago) this hint from this NG but had to work on another
    project ... I'm now back into it and would like to know how to learn the
    basics.

    Thanks.

    """
    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
    """


    Regards,


    Philippe

    Comment

    Working...