[Gtk-sharp-list] Password popup
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
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
> > tasks"
> > How is this done in Mono, how is this done and how is that
> > 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,
> prompt for individual actions.
> Michael Hutchinson
> Gtk-sharp-list maillist - [hidden email]
> View message @
> 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...
More information about the Gtk-sharp-list