Commit 3fdd93db authored by Alex Richardson's avatar Alex Richardson Committed by Elvis Angelaccio
Browse files

Don't exit immediately if DBus isn't running

I am trying to run Dolphin on a minimal FreeBSD CHERI-RISC-V QEMU
instance and I haven't got DBus running. Without this change, KDBusService
causes dolphin to exit immediately since the default behaviour is to
exit if it can't connect to DBus.
parent 531de16c
Pipeline #69782 passed with stage
in 4 minutes and 28 seconds
......@@ -178,7 +178,12 @@ int main(int argc, char **argv)
KDBusService dolphinDBusService;
// Allow starting Dolphin on a system that is not running DBus:
KDBusService::StartupOptions serviceOptions = KDBusService::Multiple;
if (!QDBusConnection::sessionBus().isConnected()) {
serviceOptions |= KDBusService::NoExitOnFailure;
KDBusService dolphinDBusService(serviceOptions);
DBusInterface interface;
if (!app.isSessionRestored()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment