@@ -226,7 +226,7 @@ void Scope::fallbackActivate(const QString& uri)
227 if (url.scheme() == "application") {
227 if (url.scheme() == "application") {
228 // get the full path to the desktop file
228 // get the full path to the desktop file
229− QString path(url.authority());
229+ QString path(url.path().isEmpty() ? url.authority() : url.path());
230 if (path.startsWith("/")) {
230 if (path.startsWith("/")) {
231 Q_EMIT activateApplication(path);
231 Q_EMIT activateApplication(path);