M
M
Michael La2019-09-14 22:04:34
Chromium Embedded Framework
Michael La, 2019-09-14 22:04:34

How to specify a directory in CEF?

Hello. How to specify that the file, for example, in the directory with the executable file (index.html) be launched? I understand that the path must be specified in the url variable, but the program will be distributed, so the program must determine the directory, and then run index.html on another PC in a different directory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2019-09-14
@Griboks

Use html code instead of a link, or a dynamic url, or a custom scheme (instead of file://), or a js binding.
As a fallback (only as a last resort) you can set up a local server with the necessary files and access it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question