#include <Ecore.h>
#include <Eina.h>
+#include <aul.h>
#define __XSTR(x) #x
#define __STR(x) __XSTR(x)
using tizen::runtime::dotnetcore::CoreRuntime;
std::unique_ptr<LauncherInterface> coreRuntime(new CoreRuntime());
runtime = std::move(coreRuntime);
+
+ _DBG("##### CoreCLR Launcher ######");
}
else
{
using tizen::runtime::mono::MonoRuntime;
std::unique_ptr<LauncherInterface> monoRuntime(new MonoRuntime());
runtime = std::move(monoRuntime);
+
+ _DBG("##### Mono Launcher ######");
}
if (standalone)
{
- std::string base = Basename(standalonePath);
+ _DBG("##### Run it standalone #########");
+ const char* appid = getenv("AUL_APPID");
+ _DBG("AUL_APPID : %s", appid);
+ std::string approot;
+ if (appid != nullptr)
+ {
+ approot = std::string(aul_get_app_root_path());
+ }
+ else
+ {
+ approot = Basename(standalonePath);
+ }
if (runtime->Initialize(true) != 0)
{
_ERR("Failed to initialize");
int args_len = vargs.size();
char** args = &vargs[0];
- if (!runtime->Launch(base.c_str(), standalonePath, args_len, args))
+ if (runtime->Launch(approot.c_str(), standalonePath, args_len, args))
{
_ERR("Failed to launch");
- return 1;
+ return 0;
}
}
else
_DBG("pkg : %s", info.pkg.c_str());
_DBG("type : %s", info.type.c_str());
- if (!runtime->Launch(info.root.c_str(), info.path.c_str(), argc, argv))
+ if (runtime->Launch(info.root.c_str(), info.path.c_str(), argc, argv))
{
_ERR("Failed to launch");
}
Name: dotnet-launcher
Summary: Launchpad plugin for dotnet apps
-Version: 1.0.0
+Version: 1.0.1
Release: 2
Group: Application Framework/Application State Management
License: Apache License, Version 2.0
%files
%manifest dotnet-launcher.manifest
%{_loaderdir}/dotnet.loader
+%{_loaderdir}/dotnet.launcher
%caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/dotnet-launcher
%caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.Coreclr.dll
%caps(cap_mac_admin,cap_setgid=ei) %{_bindir}/Tizen.Runtime.Mono.dll