From 0079a18e9717611e29af08f0bc821afa45721ba0 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 4 Sep 2023 02:12:14 +0400 Subject: [PATCH] Call D-Bus ReloadConfig asynchronously --- .../SourceFiles/platform/linux/specific_linux.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index a4885388d..b7834a48a 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -371,15 +371,16 @@ bool GenerateServiceFile(bool silent = false) { } try { - const auto connection = Gio::DBus::Connection::get_sync( - Gio::DBus::BusType::SESSION); - - connection->call_sync( + Gio::DBus::Connection::get_sync( + Gio::DBus::BusType::SESSION + )->call( base::Platform::DBus::kObjectPath, base::Platform::DBus::kInterface, "ReloadConfig", {}, - base::Platform::DBus::kService); + {}, + base::Platform::DBus::kService + ); } catch (...) { }