@@ -128,13 +128,14 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
128128 }
129129
130130 /* Break down the path to just the app id */
131+ bool validpath = true;
131132 QString pathtemp = message.path();
132133 if (!pathtemp.startsWith("/com/canonical/Unity/Launcher/")) {
133− return false;
134+ validpath = false;
134135 }
135136 pathtemp.remove("/com/canonical/Unity/Launcher/");
136137 if (pathtemp.indexOf('/') >= 0) {
137− return false;
138+ validpath = false;
138139 }
139140
140141 /* Find ourselves an appid */
@@ -149,7 +150,7 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
149150 }
150151 } else if (message.interface() == "com.canonical.Unity.Launcher.Item") {
151152 // Handle methods of the Launcher-Item interface
152− if (message.member() == "Alert") {
153+ if (message.member() == "Alert" && validpath) {
153154 QDBusMessage reply = message.createReply();
154155 Q_EMIT alertCalled(appid);
155156 return connection.send(reply);
@@ -165,6 +166,10 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
165166 return false;
166167 }
167168
169+ if (!validpath) {
170+ return false;
171+ }
172+
168173 int index = m_launcherModel->findApplication(appid);
169174 LauncherItem *item = static_cast<LauncherItem*>(m_launcherModel->get(index));
170175