@@ -365,6 +365,29 @@ bool LauncherBackend::handleMessage(const QDBusMessage& message, const QDBusConn
366QString LauncherBackend::introspect (const QString &path) const
366QString LauncherBackend::introspect (const QString &path) const
368− Q_UNUSED(path)
368+ /* This case we should just list the nodes */
369+ if (path == "/com/canonical/unity/launcher/" || path == "/com/canonical/unity/launcher") {
372+ Q_FOREACH(const QString &appId, m_storedApps) {
373+ nodes.append("<node name=\"");
374+ nodes.append(appId);
375+ nodes.append("\"/>\n");
381+ /* Should not happen, but let's handle it */
382+ if (!path.startsWith("/com/canonical/unity/launcher")) {
369− return "";
383+ return "";
386+ /* Now we should be looking at a node */
388+ "<interface name=\"com.canonical.unity.Launcher.Item\">"
389+ "<property name=\"count\" type=\"i\" access=\"readwrite\" />"
390+ "<property name=\"countVisible\" type=\"b\" access=\"readwrite\" />"