Use current working directory when loading index.html

This commit is contained in:
Kevin Sawicki
2012-06-04 12:03:13 -07:00
parent dc45578a71
commit 3e32a1b66f

View File

@@ -102,10 +102,15 @@ int main(int argc, char *argv[]) {
CefBrowserSettings browserSettings;
window_info.SetAsChild(vbox);
std::string path;
path.append("file://");
path.append(szWorkingDir);
path.append("/../index.html");
CefBrowser::CreateBrowserSync(window_info,
static_cast<CefRefPtr<CefClient> >(g_handler),
"", browserSettings);
path, browserSettings);
gtk_container_add(GTK_CONTAINER(window), vbox);
gtk_widget_show_all(GTK_WIDGET(window));