From: Jim R. <i....@ji...> - 2007-03-28 17:45:16
|
David Arthur wrote: > Then how about using a text input zenity window (can't find the > switch, not on a linux machine atm) and passing the password to sudo > via stdin? It's probably possible to get it looking very like gksudo > using this method. Just using gksudo (or the above) really does look > more polished than using an xterm. zenity --entry --text "Password" --hide-text But since this is all in rox-lib2 anyway (where we have access to pygtk), it should be fairly trivial to write our own text entry dialog without having to rely on an external ap (zenity/xterm/xmessage/gksu) at all. That said, one thing gksu/do does nicely is it uses a full-screen window so you don't accidentally type your password into your IRC window - I'm not sure how easy that would be to replicate with pygtk. --=20 Jim Ramsay "Me fail English? That's unpossible!" |