ShellExecute in Linux

Hi,

I am porting an application from Win to Linux. In the Win32 application, after the application is installed, it opens the browser for login using the ShellExecute API command. ShellExecute takes in params to open the default browser.

Now I want to replicate the same in Linux. The default browser on my Linux m/c is mozilla.
My m/c's uname -a is
Linux staci21 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux

Does anyone have any idea or any pointers on how to go about the same ?

Vino

The call you use is specific to the environment you are using, for example, gnome.

There are no true file associations in in Unix. You are better off calling
fork() and exec is equivalent to spawn in Windows.

exec....() - whichever member of the exec family you want.