[Gtk-sharp-list] Password popup

toogooda andrew at toogoods.co.nz
Thu Apr 15 17:41:24 EDT 2010


Thank you so much, I had just about given up on Mono because I could
find an answer anywhere,

I am using Gnome so I asume I use gksu?

If i call it at startup when I then run shell commands I do not need to
prefix sudo?

Know where I can read some documentation?

On Fri, 2010-04-09 at 14:04 -0800, Michael Hutchinson [via Mono] wrote:

> On Wed, Mar 3, 2010 at 3:43 AM, toogooda <[hidden email]> wrote: 
> 
> 
> > 
> > I would like to know what code I use to prompt the user for password
> so I can 
> > do admin tasks 
> > 
> > ie: I want to create a file in /etc/apt/apt.conf.d at the command
> line I 
> > would have to use sudu. 
> > 
> > if I open any GUI app in Ubuntu that wants to change settings I get
> a nice 
> > box that pops up and asks "enter your password to perform
> administrative 
> > tasks" 
> > 
> > How is this done in Mono, how is this done and how is that
> authorization 
> > used to do the tasks.
> 
> 
> That kind of thing is usually done by calling one of the graphical 
> sudos such as xdg-su/gksu/kdesu/etc, either in your launch script, to 
> have the whole app run as root, or in subprocesses run by your app,
> to 
> prompt for individual actions. 
> 
> -- 
> Michael Hutchinson 
> http://mjhutchinson.com
> _______________________________________________ 
> Gtk-sharp-list maillist  -  [hidden email] 
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> 
> 
> ______________________________________________________________________
> 
> View message @
> http://n4.nabble.com/Password-popup-tp1576022p1819948.html 
> To unsubscribe from Password popup, click here.
> 
> 



-- 
View this message in context: http://n4.nabble.com/Password-popup-tp1576022p1934347.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20100415/ec570b53/attachment.html 


More information about the Gtk-sharp-list mailing list