X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=homescreen%2Fsrc%2Fapplicationlauncher.cpp;h=48560e601fa953f3faf9b2401718a2a4f29e12fb;hb=refs%2Fheads%2Fsandbox%2Fmvlad%2Fflatpak-integration;hp=5a1e2d6fd2ddf652859196f2db44cbc40810c9ad;hpb=85392e71f90a0322fdc08359ef1d829cdcf67381;p=apps%2Fhomescreen.git diff --git a/homescreen/src/applicationlauncher.cpp b/homescreen/src/applicationlauncher.cpp index 5a1e2d6..48560e6 100644 --- a/homescreen/src/applicationlauncher.cpp +++ b/homescreen/src/applicationlauncher.cpp @@ -16,13 +16,9 @@ * limitations under the License. */ -#include "applicationlauncher.h" - -#include "afm_user_daemon_proxy.h" - -#include "hmi-debug.h" +#include -extern org::AGL::afm::user *afm_user_daemon_proxy; +#include "applicationlauncher.h" ApplicationLauncher::ApplicationLauncher(QObject *parent) : QObject(parent) @@ -45,21 +41,6 @@ ApplicationLauncher::ApplicationLauncher(QObject *parent) }); } -int ApplicationLauncher::launch(const QString &application) -{ - int result = -1; - HMI_DEBUG("HomeScreen","ApplicationLauncher launch %s.", application.toStdString().c_str()); - - result = afm_user_daemon_proxy->start(application).value().toInt(); - HMI_DEBUG("HomeScreen","ApplicationLauncher pid: %d.", result); - - if (result > 1) { - setLaunching(true); - } - - return result; -} - bool ApplicationLauncher::isLaunching() const { return m_launching;