From 2d69329dc9bd17e814c194fd352da6d16fa7286e Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 3 Oct 2022 08:11:20 +0400 Subject: [PATCH] Set linux webview debug mode via D-Bus IPC --- Telegram/SourceFiles/platform/linux/launcher_linux.cpp | 5 ++--- Telegram/lib_webview | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp index e3af76c18..2b1681dc2 100644 --- a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp @@ -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(); } } diff --git a/Telegram/lib_webview b/Telegram/lib_webview index 546df65eb..1d14bb480 160000 --- a/Telegram/lib_webview +++ b/Telegram/lib_webview @@ -1 +1 @@ -Subproject commit 546df65eb2424550ed84ce14fc9c5d1bb3586f35 +Subproject commit 1d14bb480a38b02fa93403f511076d3135d9b934