Set command line to the environment variable 86/320186/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 25 Feb 2025 05:40:40 +0000 (14:40 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 25 Feb 2025 05:40:40 +0000 (14:40 +0900)
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>
src/lib/launchpad/launchpad_loader.cc

index e954e6b13c501579228c07c55fcee4189045b280..654fa7142f3942103212967950b0e233b64a9757 100644 (file)
@@ -20,6 +20,7 @@
 #include <aul_sock.h>
 #include <bundle_cpp.h>
 #include <malloc.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <unistd.h>
 
@@ -80,6 +81,8 @@ LaunchpadLoader::LaunchpadLoader(int argc, char** argv)
   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() {