Skip to content

Commit

Permalink
Call D-Bus ReloadConfig asynchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Sep 4, 2023
1 parent 876a803 commit 0079a18
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Telegram/SourceFiles/platform/linux/specific_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (...) {
}

Expand Down

0 comments on commit 0079a18

Please sign in to comment.