mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Set service name for lib_base and lib_webview gtk integration
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user