diff --git a/components/mobilehomescreencomponents/applicationlistmodel.cpp b/components/mobilehomescreencomponents/applicationlistmodel.cpp index 00335d5b..9db77ef0 100644 --- a/components/mobilehomescreencomponents/applicationlistmodel.cpp +++ b/components/mobilehomescreencomponents/applicationlistmodel.cpp @@ -399,6 +399,12 @@ void ApplicationListModel::runApplication(const QString &storageId) KIO::ApplicationLauncherJob *job = new KIO::ApplicationLauncherJob(service); job->setUiDelegate(new KNotificationJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled)); job->start(); + connect(job, &KJob::finished, this, [this, job] { + if (job->error()) { + qWarning() << "error launching" << job->error() << job->errorString(); + Q_EMIT launchError(job->errorString()); + } + }); } int ApplicationListModel::maxFavoriteCount() const diff --git a/components/mobilehomescreencomponents/applicationlistmodel.h b/components/mobilehomescreencomponents/applicationlistmodel.h index 326ed6d0..94f66da5 100644 --- a/components/mobilehomescreencomponents/applicationlistmodel.h +++ b/components/mobilehomescreencomponents/applicationlistmodel.h @@ -116,6 +116,7 @@ Q_SIGNALS: void favoriteCountChanged(); void maxFavoriteCountChanged(); void appletChanged(); + void launchError(const QString &msg); protected: void initWayland(); diff --git a/components/mobilehomescreencomponents/qml/AppDrawer.qml b/components/mobilehomescreencomponents/qml/AppDrawer.qml index a45b0815..e96f7a98 100644 --- a/components/mobilehomescreencomponents/qml/AppDrawer.qml +++ b/components/mobilehomescreencomponents/qml/AppDrawer.qml @@ -204,6 +204,11 @@ Item { // boundsBehavior: Flickable.StopAtBounds + Connections { + target: HomeScreenComponents.ApplicationListModel + onLaunchError: NanoShell.StartupFeedback.close() + } + model: HomeScreenComponents.ApplicationListModel header: Rectangle {