[Gtk-sharp-list] GTK# Ubuntu - Debian question

docmur amurdoch.cc at gmail.com
Mon Dec 21 02:55:18 UTC 2015

Hey Guys

I'm trying to run apt-get from my GTK# program with:

Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "/bin/bash";
proc.StartInfo.Arguments = "-c apt-get install -y fortunes-off";
proc.StartInfo.UseShellExecute = false; 
proc.StartInfo.RedirectStandardOutput = true;

The problem I'm having it will not work, I've tried running it as root,
putting sudo before it and nothing works. Anyone know how to overcome it?

View this message in context: http://mono.1490590.n4.nabble.com/GTK-Ubuntu-Debian-question-tp4667192.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list