Loading a Custom URL Mac Wiki contribution

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Loading a Custom URL Mac Wiki contribution

Postby markvw » Sat Dec 12, 2015 5:08 pm

Loading a Custom URL

The cefsimple application loads google.com by default but you can change it to load a custom URL instead. The easiest way to load a different URL is via the command-line.

Code: Select all
# Load the local file “c:\example\example.html”
cefsimple.exe --url=file://c:/example/example.html


I like to add the following line for MAC users

Code: Select all
# Load the local file “c:\example\example.html”
open PATH/TO/cefsimple.app --args --url=file://c:/example/example.html
Last edited by markvw on Sun Dec 13, 2015 5:42 am, edited 1 time in total.
markvw
Techie
 
Posts: 11
Joined: Fri Dec 11, 2015 3:58 am

Re: Loading a Custom URL Mac Wiki contribution

Postby magreenblatt » Sat Dec 12, 2015 7:51 pm

Does it need to be "open cefsimple.app" or is the open optional?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Loading a Custom URL Mac Wiki contribution

Postby markvw » Sun Dec 13, 2015 5:42 am

No, open needs to be included, you are correct. I edited it in the piece above.
markvw
Techie
 
Posts: 11
Joined: Fri Dec 11, 2015 3:58 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 26 guests