ShortcutArea: use the launcher to verify if the app is running
[apps/homescreen.git] / homescreen / src / applicationlauncher.cpp
index bb9f646..917ecaf 100644 (file)
@@ -52,6 +52,7 @@ int ApplicationLauncher::launch(const QString &application)
     int result = -1;
     HMI_DEBUG("HomeScreen","ApplicationLauncher launch %s.", application.toStdString().c_str());
 
+    fprintf(stdout, "ApplicationLauncher::launch with %s\n", application.toStdString().c_str());
     if (m_launcher->connection_is_set())
            result = m_launcher->start(application);
 
@@ -64,6 +65,12 @@ int ApplicationLauncher::launch(const QString &application)
     return result;
 }
 
+bool ApplicationLauncher::is_running(const QString &application)
+{
+    if (m_launcher->connection_is_set())
+           return m_launcher->is_running(application);
+}
+
 bool ApplicationLauncher::isLaunching() const
 {
     return m_launching;