Custom command line argument

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.

Custom command line argument

Postby me12 » Wed Oct 29, 2014 10:04 am

Hi guys,

is there a way to add a custom command line argument?

I would like to have gpu acceleration always disabled. This can be done with "--disable-gpu" since there is no such setting in CEF3, I thought, I'll just add that flag somewhere in my code.

Any ideas where I would do this?

Some Ideas:

1. Maybe add it to the hInstance somehow?

2. CefMainArgs doesn't seem to be able to add a paremter.

3. Probably a way to add it in CefSettings?

Thanks for your help!
me12
Techie
 
Posts: 31
Joined: Thu Jul 10, 2014 12:46 pm

Re: Custom command line argument

Postby magreenblatt » Wed Oct 29, 2014 10:41 am

Use OnBeforeCommandLineProcessing.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Custom command line argument

Postby me12 » Wed Oct 29, 2014 11:19 am

Works perfect!

Thanks a lot!
me12
Techie
 
Posts: 31
Joined: Thu Jul 10, 2014 12:46 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 107 guests