mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Call D-Bus ReloadConfig asynchronously
This commit is contained in:
@@ -371,15 +371,16 @@ bool GenerateServiceFile(bool silent = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const auto connection = Gio::DBus::Connection::get_sync(
|
Gio::DBus::Connection::get_sync(
|
||||||
Gio::DBus::BusType::SESSION);
|
Gio::DBus::BusType::SESSION
|
||||||
|
)->call(
|
||||||
connection->call_sync(
|
|
||||||
base::Platform::DBus::kObjectPath,
|
base::Platform::DBus::kObjectPath,
|
||||||
base::Platform::DBus::kInterface,
|
base::Platform::DBus::kInterface,
|
||||||
"ReloadConfig",
|
"ReloadConfig",
|
||||||
{},
|
{},
|
||||||
base::Platform::DBus::kService);
|
{},
|
||||||
|
base::Platform::DBus::kService
|
||||||
|
);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user