Set service name for lib_base and lib_webview gtk integration

This commit is contained in:
Ilya Fedin
2021-07-07 08:25:23 +04:00
committed by John Preston
parent 3cdd115317
commit 17cee8ec56
7 changed files with 53 additions and 45 deletions

View File

@@ -58,18 +58,17 @@ int Launcher::exec() {
return GtkIntegration::Exec(
GtkIntegration::Type::Base,
QString::fromStdString(*(i + 1)),
std::stoi(*(i + 2)));
} else if (*i == "-webviewhelper" && std::distance(i, e) > 3) {
QString::fromStdString(*(i + 2)));
} else if (*i == "-webviewhelper" && std::distance(i, e) > 2) {
return GtkIntegration::Exec(
GtkIntegration::Type::Webview,
QString::fromStdString(*(i + 1)),
std::stoi(*(i + 2)),
std::stoi(*(i + 3)));
QString::fromStdString(*(i + 2)));
} else if (*i == "-gtkintegration" && std::distance(i, e) > 2) {
return GtkIntegration::Exec(
GtkIntegration::Type::TDesktop,
QString::fromStdString(*(i + 1)),
std::stoi(*(i + 2)));
QString::fromStdString(*(i + 2)));
}
}