On Mon, Apr 21, 2008 at 8:45 AM, Jonathan Pryor <[EMAIL PROTECTED]> 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 _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list