projects
/
simple-launcher
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added forgotten copyright notice
[simple-launcher]
/
launchable-item.cc
diff --git
a/launchable-item.cc
b/launchable-item.cc
index
cf17f2c
..
53edc67
100644
(file)
--- a/
launchable-item.cc
+++ b/
launchable-item.cc
@@
-16,9
+16,17
@@
// Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "launchable-item.h"
// Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "launchable-item.h"
+#include "utils.h"
bool LaunchableItem::activate(osso_context_t *context) {
bool LaunchableItem::activate(osso_context_t *context) {
- return osso_application_top(context, getService().c_str(), NULL) == OSSO_OK;
+ bool result = false;
+
+ if (getService().empty() || !(result = osso_application_top(context, getService().c_str(), NULL) == OSSO_OK)) {
+ runApplication(getExec());
+ return true;
+ } else {
+ return result;
+ }
}
// vim:ts=2:sw=2:et
}
// vim:ts=2:sw=2:et