Set linux webview debug mode via D-Bus IPC

This commit is contained in:
Ilya Fedin 2022-10-03 08:11:20 +04:00 committed by John Preston
parent 3fe403117a
commit 2d69329dc9
2 changed files with 3 additions and 4 deletions

View file

@ -52,9 +52,8 @@ Launcher::Launcher(int argc, char *argv[])
int Launcher::exec() {
for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) {
if (*i == "-webviewhelper" && std::distance(i, e) > 2) {
Webview::WebKit2Gtk::SetDebug(*(i + 1));
Webview::WebKit2Gtk::SetSocketPath(*(i + 2));
if (*i == "-webviewhelper" && std::distance(i, e) > 1) {
Webview::WebKit2Gtk::SetSocketPath(*(i + 1));
return Webview::WebKit2Gtk::Exec();
}
}

@ -1 +1 @@
Subproject commit 546df65eb2424550ed84ce14fc9c5d1bb3586f35
Subproject commit 1d14bb480a38b02fa93403f511076d3135d9b934