While creating the constructor of the launchpad-loader,
"TIZEN_LOADER" variable is set to the environment variable for
the application core. If it exists, the application core sets the
application info for enlightenment.
Change-Id: Ie1c7e184ab7bb2ff8c85b4c31019bae12c8c07f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
#include <aul_sock.h>
#include <bundle_cpp.h>
#include <malloc.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
loader_id_ = atoi(argv_[LoaderArg::Id]);
_W("loader type: %d, loader id: %d", loader_type_, loader_id_);
context = this;
+
+ setenv("TIZEN_LOADER", argv[LoaderArg::Path], 1);
}
LaunchpadLoader::~LaunchpadLoader() {