2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Move GTK integration out of process with D-Bus

This commit is contained in:
Ilya Fedin
2021-06-23 03:20:40 +04:00
committed by John Preston
parent d3c9bb0bc6
commit 551ea7d879
13 changed files with 729 additions and 74 deletions

View File

@@ -743,11 +743,8 @@ void start() {
Glib::set_prgname(cExeName().toStdString());
Glib::set_application_name(std::string(AppName));
if (const auto integration = BaseGtkIntegration::Instance()) {
integration->prepareEnvironment();
} else {
g_warning("GTK integration is disabled, some features unavailable.");
}
GtkIntegration::Start(GtkIntegration::Type::Base);
GtkIntegration::Start(GtkIntegration::Type::TDesktop);
#ifdef DESKTOP_APP_USE_PACKAGED_RLOTTIE
g_warning(
@@ -944,13 +941,16 @@ bool OpenSystemSettings(SystemSettingsType type) {
namespace ThirdParty {
void start() {
GtkIntegration::Autorestart(GtkIntegration::Type::Base);
GtkIntegration::Autorestart(GtkIntegration::Type::TDesktop);
if (const auto integration = BaseGtkIntegration::Instance()) {
integration->load();
integration->load(GtkIntegration::AllowedBackends());
integration->initializeSettings();
}
if (const auto integration = GtkIntegration::Instance()) {
integration->load();
integration->load(GtkIntegration::AllowedBackends());
}
// wait for interface announce to know if native window frame is supported