[pygtk] Getting password and running command-line with privileges

Gian Mario Tagliaretti gianmt at gnome.org
Mon Feb 25 20:23:31 WST 2008


On Mon, Feb 25, 2008 at 12:01 PM, Juan Fiol <fiolj a yahoo.com> wrote:

Hi Juan,

>  I am implementing a gui and I need to implement it such that, in some
>  occasions, the user can run a command with privileges (via sudo).

In python-gnome-extras we have python bindings for gksu2
http://svn.gnome.org/viewvc/gnome-python-extras/trunk/

maybe you want to have a look, there is also an example:
http://svn.gnome.org/viewvc/gnome-python-extras/trunk/examples/gksu2/simple.py?view=markup

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list