mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use current working directory when loading index.html
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user