mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Set linux webview debug mode via D-Bus IPC
This commit is contained in:
parent
3fe403117a
commit
2d69329dc9
2 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 546df65eb2424550ed84ce14fc9c5d1bb3586f35
|
Subproject commit 1d14bb480a38b02fa93403f511076d3135d9b934
|
Loading…
Add table
Reference in a new issue