on xenial help sign in
Use path if authority returns empty string
commit4f1a863c30951d1e031b85fa1993224177b2eda1 authorMichal Hruby <michal.mhr@gmail.com> dateWed 14 Aug 2013, 00:10 (13 years ago) parentd327fc1
1 file changed+1−1
plugins/Unity/scope.cpp+1−1
plugins/Unity/scope.cpp+1−1
@@ -226,7 +226,7 @@ void Scope::fallbackActivate(const QString& uri)
226226 }
227227 if (url.scheme() == "application") {
228228 // get the full path to the desktop file
229− QString path(url.authority());
229+ QString path(url.path().isEmpty() ? url.authority() : url.path());
230230 if (path.startsWith("/")) {
231231 Q_EMIT activateApplication(path);
232232 } else {