[Mono-bugs] [Bug 349263] Process.Start()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 26 15:42:32 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=349263

User gavin.landon at ignitetech.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=349263#c1


Gavin Landon <gavin.landon at ignitetech.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gavin.landon at ignitetech.com




--- Comment #1 from Gavin Landon <gavin.landon at ignitetech.com>  2007-12-26 13:42:32 MST ---
Work around

if(os=="OSX")
{
        sParm = "-t " + sFile;
        sFile = "open";
        bUseShellExecute = false;
}

if(os=="Linux")
{
        sParm = sFile;
        sFile = "xdg-open";
        bUseShellExecute = false;
}

Process proc = new Process();
proc.StartInfo.FileName = sFile;
proc.StartInfo.Arguments = sParm;
proc.StartInfo.UseShellExecute = bUseShellExecute;
proc.StartInfo.RedirectStandardOutput = false;
proc.Start();


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list