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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Submodule Telegram/lib_webview updated: 546df65eb2...1d14bb480a
Reference in New Issue
Block a user