2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Call D-Bus ReloadConfig asynchronously

This commit is contained in:
Ilya Fedin
2023-09-04 02:12:14 +04:00
committed by John Preston
parent 876a803e0e
commit 0079a18e97

View File

@@ -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 (...) {
}