@@ -50,9 +50,9 @@ LauncherBackend::LauncherBackend(QObject *parent):
51 /* Set up ourselves on DBus */
51 /* Set up ourselves on DBus */
52 QDBusConnection con = QDBusConnection::sessionBus();
52 QDBusConnection con = QDBusConnection::sessionBus();
53− if (!con.registerService("com.canonical.unity.launcher"))
53+ if (!con.registerService("com.canonical.Unity.Launcher"))
54 qDebug() << "Unable to register launcher name";
54 qDebug() << "Unable to register launcher name";
55− if (!con.registerVirtualObject("/com/canonical/unity/launcher", this, QDBusConnection::VirtualObjectRegisterOption::SubPath))
55+ if (!con.registerVirtualObject("/com/canonical/Unity/Launcher", this, QDBusConnection::VirtualObjectRegisterOption::SubPath))
56 qDebug() << "Unable to register launcher object";
56 qDebug() << "Unable to register launcher object";
@@ -60,8 +60,8 @@ LauncherBackend::~LauncherBackend()
61 /* Remove oursevles from DBus */
61 /* Remove oursevles from DBus */
62 QDBusConnection con = QDBusConnection::sessionBus();
62 QDBusConnection con = QDBusConnection::sessionBus();
63− con.unregisterService("com.canonical.unity.launcher");
63+ con.unregisterService("com.canonical.Unity.Launcher");
64− con.unregisterObject("/com/canonical/unity/launcher");
64+ con.unregisterObject("/com/canonical/Unity/Launcher");
66 /* Clear data */
66 /* Clear data */
67 m_storedApps.clear();
67 m_storedApps.clear();
@@ -427,14 +427,14 @@ bool LauncherBackend::handleMessage(const QDBusMessage& message, const QDBusConn
427 return false;
427 return false;
428 if (message.interface() != "org.freedesktop.DBus.Properties")
428 if (message.interface() != "org.freedesktop.DBus.Properties")
429 return false;
429 return false;
430− if (message.arguments()[0].toString() != "com.canonical.unity.Launcher.Item")
430+ if (message.arguments()[0].toString() != "com.canonical.Unity.Launcher.Item")
431 return false;
431 return false;
433 /* Break down the path to just the app id */
433 /* Break down the path to just the app id */
434 QString pathtemp = message.path();
434 QString pathtemp = message.path();
435− if (!pathtemp.startsWith("/com/canonical/unity/launcher/"))
435+ if (!pathtemp.startsWith("/com/canonical/Unity/Launcher/"))
436 return false;
436 return false;
437− pathtemp.remove("/com/canonical/unity/launcher/");
437+ pathtemp.remove("/com/canonical/Unity/Launcher/");
438 if (pathtemp.indexOf('/') >= 0)
438 if (pathtemp.indexOf('/') >= 0)
439 return false;
439 return false;
@@ -465,7 +465,7 @@ bool LauncherBackend::handleMessage(const QDBusMessage& message, const QDBusConn
465QString LauncherBackend::introspect (const QString &path) const
465QString LauncherBackend::introspect (const QString &path) const
467 /* This case we should just list the nodes */
467 /* This case we should just list the nodes */
468− if (path == "/com/canonical/unity/launcher/" || path == "/com/canonical/unity/launcher") {
468+ if (path == "/com/canonical/Unity/Launcher/" || path == "/com/canonical/Unity/Launcher") {
469 QString nodes;
469 QString nodes;
471 Q_FOREACH(const QString &appId, m_itemCache.keys()) {
471 Q_FOREACH(const QString &appId, m_itemCache.keys()) {
@@ -478,13 +478,13 @@ QString LauncherBackend::introspect (const QString &path) const
480 /* Should not happen, but let's handle it */
480 /* Should not happen, but let's handle it */
481− if (!path.startsWith("/com/canonical/unity/launcher")) {
481+ if (!path.startsWith("/com/canonical/Unity/Launcher")) {
482 return "";
482 return "";
485 /* Now we should be looking at a node */
485 /* Now we should be looking at a node */
486 QString nodeiface =
486 QString nodeiface =
487− "<interface name=\"com.canonical.unity.Launcher.Item\">"
487+ "<interface name=\"com.canonical.Unity.Launcher.Item\">"
488 "<property name=\"count\" type=\"i\" access=\"readwrite\" />"
488 "<property name=\"count\" type=\"i\" access=\"readwrite\" />"
489 "<property name=\"countVisible\" type=\"b\" access=\"readwrite\" />"
489 "<property name=\"countVisible\" type=\"b\" access=\"readwrite\" />"
490 "</interface>";
490 "</interface>";
@@ -541,7 +541,7 @@ QString LauncherBackend::encodeAppId (const QString& appId)
542void LauncherBackend::emitPropChangedDbus (const QString& appId, const QString& property, QVariant &value) const
542void LauncherBackend::emitPropChangedDbus (const QString& appId, const QString& property, QVariant &value) const
544− QString path("/com/canonical/unity/launcher/");
544+ QString path("/com/canonical/Unity/Launcher/");
545 path.append(encodeAppId(appId));
545 path.append(encodeAppId(appId));
547 QDBusMessage message = QDBusMessage::createSignal(path, "org.freedesktop.DBus.Properties", "PropertiesChanged");
547 QDBusMessage message = QDBusMessage::createSignal(path, "org.freedesktop.DBus.Properties", "PropertiesChanged");