@@ -196,7 +196,7 @@ void LauncherModel::setUser(const QString &username)
196196 m_backend->setUser(username);
197197}
198198
199−QString LauncherModel::getUrlForAppId(const QString &appId)
199+QString LauncherModel::getUrlForAppId(const QString &appId) const
200200{
201201 // appId is either an appId or a legacy app name. Let's find out which
202202 QString url;
@@ -205,12 +205,12 @@ QString LauncherModel::getUrlForAppId(const QString &appId)
205205 // assume legacy app until proven otherwise
206206 url = "application:///" + appId + ".desktop";
207207
208− if (upstart_app_launch_app_id_parse(appId.first().toLatin1().constData(),
208+ if (upstart_app_launch_app_id_parse(appId.toLatin1().constData(),
209209 &package, &app, &version)) {
210210 // Turn it back into an appId to test if it's a click app or not
211211 longAppId = upstart_app_launch_triplet_to_app_id(package, app, version);
212212 if (longAppId != nullptr) { // it is a click app!
213− url = QString("appid://%1/%2/%3").args(package, app, version);
213+ url = QString("appid://%1/%2/%3").arg(package, app, version);
214214 g_free(longAppId);
215215 }
216216 g_free(package);