[dolphin] [Bug 422300] New feature to restore folders, tabs and window state on startup is not working

Antonio Rojas bugzilla_noreply at kde.org
Sun Jul 19 14:09:00 BST 2020


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

--- Comment #3 from Antonio Rojas <arojas at 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 on the CC list for the bug.



More information about the kfm-devel mailing list