How to pass additional command line arguments to subprocess

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to pass additional command line arguments to subprocess

Postby MaNI » Sat Apr 12, 2014 3:41 pm

Hello,

I need to pass some additional information to the sub processes that are launched, but I can't find anywhere where this can be set.
I can find only "OnBeforeCommandLineProcessing" - but this seems to alter the command lines after they are already received not before they are sent.

Is there some way to do this that I am missing?
MaNI
Mentor
 
Posts: 50
Joined: Thu Feb 06, 2014 4:39 pm

Re: How to pass additional command line arguments to subproc

Postby magreenblatt » Sat Apr 12, 2014 4:29 pm

Why do you need to change them before they're sent versus before chromium looks at them (which is what OnBeforeCommandLineProcessing does)? If you're only interested in passing additional info to renderer processes see OnRenderProcessThreadCreated.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to pass additional command line arguments to subproc

Postby MaNI » Sat Apr 12, 2014 4:31 pm

I want to pass some additional information to the subprocess that it will make use of before launching CEF.
MaNI
Mentor
 
Posts: 50
Joined: Thu Feb 06, 2014 4:39 pm

Re: How to pass additional command line arguments to subproc

Postby magreenblatt » Sat Apr 12, 2014 4:35 pm

MaNI wrote:I want to pass some additional information to the subprocess that it will make use of before launching CEF.

In that case you can use CefBrowserProcessHandler::OnBeforeChildProcessLaunch.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to pass additional command line arguments to subproc

Postby MaNI » Sun Apr 13, 2014 1:49 am

Excellent thanks, not sure how my search missed that.
MaNI
Mentor
 
Posts: 50
Joined: Thu Feb 06, 2014 4:39 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 64 guests