https://bugs.kde.org/show_bug.cgi?id=422300

--- Comment #3 from Antonio Rojas <aro...@archlinux.org> ---
After frustratingly trying to figure out how to create pull requests for an
hour, I'll just leave my fix here. The problem is caused by trying to call the
dbus interface before initializing it.

diff --git a/src/main.cpp b/src/main.cpp
index 802e64d25..f0336f628 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -178,6 +178,9 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)

     mainWindow->show();

+    KDBusService dolphinDBusService;
+    DBusInterface interface;
+
     if (!app.isSessionRestored()) {
         KConfigGui::setSessionConfig(QStringLiteral("dolphin"),
QStringLiteral("dolphin"));
     }
@@ -200,8 +203,5 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv)
         }
     }

-    KDBusService dolphinDBusService;
-    DBusInterface interface;
-
     return app.exec(); // krazy:exclude=crash;
 }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to