mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Call D-Bus ReloadConfig asynchronously
This commit is contained in:
parent
876a803e0e
commit
0079a18e97
1 changed files with 6 additions and 5 deletions
|
@ -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 (...) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue