how to add command-line flag on mac

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 add command-line flag on mac

Postby shines7 » Thu Jan 07, 2016 12:51 am

Hello.

I am a beginner on Mac development.
I had used in the CEF to the previous WINDOWS.
Now will be used on mac.
I would like to add a '--enable-npapi' on the command-line of helper.app.
How can I do this?
shines7
Newbie
 
Posts: 9
Joined: Mon Mar 24, 2014 12:41 am

Re: how to add command-line flag on mac

Postby magreenblatt » Thu Jan 07, 2016 11:47 am

Command-line flags can be added in CefApp:OnBeforeCommandLineProcessing in the main process. You don't need to add them explicitly in the helper process.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: how to add command-line flag on mac

Postby shines7 » Wed Jan 27, 2016 1:02 am

thank you answer it.

Question of the point was wrong.
This is the point of the question.
i have to load plugin. So i run my app with argument "--enable-npapi". but it is not work.
WINDOWS os can run it.

how do i load plugin?
shines7
Newbie
 
Posts: 9
Joined: Mon Mar 24, 2014 12:41 am

Re: how to add command-line flag on mac

Postby amaitland » Wed Jan 27, 2016 1:38 am

What version are you using? NPAPI support has been removed from Chromium from versions 2454 and above.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: how to add command-line flag on mac

Postby shines7 » Wed Jan 27, 2016 4:17 am

I Know that Chromium is not support NPAPI.

I mean.. CEF
My app can load plugin with CEF on WINDOWS OS
but mac OS can not load.

CEF virsion : 3.2357.1291
OS : MAC
shines7
Newbie
 
Posts: 9
Joined: Mon Mar 24, 2014 12:41 am

Re: how to add command-line flag on mac

Postby amaitland » Wed Jan 27, 2016 7:06 am

shines7 wrote:I Know that Chromium is not support NPAPI.

I mean.. CEF


For clarity Chromium not supporting NPAPI means that CEF also doesn't support NPAPI in newer versions.

If you need to explicitly load a plugin then look at

apidocs3/projects/%28default%29/%28_globals%29.html#CefAddWebPluginPath%28constCefString&%29
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 101 guests