[webkit-dev] launch webkit browser from my c code
Mark Rowe
mrowe at apple.com
Tue Nov 11 00:53:54 PST 2008
On Nov 11, 2008, at 12:47 AM, Ajay Gautam wrote:
> Hi ,
> I want to launch my webkit browser from my c code as following:
> pId = fork();
> if(pId)
> {
> execl("/GtkLauncher","sh","-c",NULL);
> }
>
> but its not launching .
> Please can anybody tell me that where i am doing wrong?
Why are you passing "sh" for argv[0] and "-c" for argv[1]?
You should read the man page for execl and take a look at errno after
the failed call to execl. There's nothing particularly WebKit-
specific about this.
- Mark
More information about the webkit-dev
mailing list