2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 14:08:41 +00:00

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() { int Launcher::exec() {
for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) { for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) {
if (*i == "-webviewhelper" && std::distance(i, e) > 2) { if (*i == "-webviewhelper" && std::distance(i, e) > 1) {
Webview::WebKit2Gtk::SetDebug(*(i + 1)); Webview::WebKit2Gtk::SetSocketPath(*(i + 1));
Webview::WebKit2Gtk::SetSocketPath(*(i + 2));
return Webview::WebKit2Gtk::Exec(); return Webview::WebKit2Gtk::Exec();
} }
} }