[Gtk-sharp-list] Root Access
Michael Hutchinson
m.j.hutchinson at gmail.com
Mon Apr 21 15:02:31 EDT 2008
On Mon, Apr 21, 2008 at 8:45 AM, Jonathan Pryor <jonpryor at vt.edu> wrote:
> On Sun, 2008-04-20 at 11:42 -0400, Darwin Reynoso wrote:
>
> > pc.StartInfo.FileName = "/home/user/bin/usb_pickit";
> > pc.StartInfo.Arguments = "-e";
> >
>
> > this is how i do it within a console
> > sudo /home/user/bin/usb_pickit -e any ideas please
>
> One of these things is not like the other. One uses sudo and one
> doesn't. :-)
>
> You might try changing your C# code to be:
>
>
> pc.StartInfo.FileName = "/usr/bin/sudo";
> pc.StartInfo.Arguments = "/home/user/bin/usb_pickit -e";
>
> - Jon
Assuming it's a GUI app on a recent distro, try xdg-su instead of
sudo, as it'll launch a GUI prompt for the password.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Gtk-sharp-list
mailing list