How to run a url in monodevelop C #?

I am trying to find something in the gnome libs for this:

Gnome.GnomeOpen(url_string);

      

and gnome will open url with preferred gnome app

Does it exist?

+2


source to share


2 answers


Process.Start should handle all the useless work for you:



Process.Start ("http://www.mono-project.com");

      

+3


source


Unverified:

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false; 
proc.StartInfo.FileName = "xdg-open"; //best guess
proc.StartInfo.Arguments = string_url;
proc.Start();
proc.WaitForExit();

      



I don't have linux at work to test this, but you should accomplish what you want by changing the command to what it needs using the above as a template.

+1


source







All Articles