|
|
|
|
@ -436,7 +436,15 @@ void MainWindow::open_browser() {
|
|
|
|
|
webkit_web_view_load_uri(one, link_doc);
|
|
|
|
|
wndWeb->show_all();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
this->template_open_browser();
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
this->template_open_browser();
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::template_open_browser() {
|
|
|
|
|
string cmd = cmd_xdg + string(_(link_doc)) + " &";
|
|
|
|
|
string buf = "";
|
|
|
|
|
if (geteuid() == 0) {
|
|
|
|
|
@ -447,8 +455,7 @@ void MainWindow::open_browser() {
|
|
|
|
|
std::snprintf( buf.get(), size, cmd_execute, response_user.c_str(), cmd.c_str() );
|
|
|
|
|
cmd = std::string( buf.get(), buf.get() + size - 1 );
|
|
|
|
|
}
|
|
|
|
|
obj_process_system.call(cmd, "&");
|
|
|
|
|
#endif
|
|
|
|
|
index_error = system(cmd.c_str());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::load_local_cfg() {
|
|
|
|
|
|