constexpr const char kAulMountAllowedResDir[] = "__AUL_MOUNT_ALLOWED_RES_DIR__";
constexpr const char kAulEnabledLightUser[] = "__AUL_ENABLED_LIGHT_USER__";
constexpr const char kAulMountResPkgIds[] = "__AUL_MOUNT_RES_PKGIDS__";
+constexpr const char kAulOrgAppId[] = "__AUL_ORG_APPID__";
} // namespace launchpad
if (!app_info->GetRootPath().empty())
setenv("AUL_ROOT_PATH", app_info->GetRootPath().c_str(), 1);
- if (!app_info->GetAppId().empty())
- setenv("AUL_APPID", app_info->GetAppId().c_str(), 1);
+ if (!app_info->GetAppId().empty()) {
+ auto org_app_id = b.GetString(kAulOrgAppId);
+ if (!org_app_id.empty())
+ setenv("AUL_APPID", org_app_id.c_str(), 1);
+ else
+ setenv("AUL_APPID", app_info->GetAppId().c_str(), 1);
+ }
if (!app_info->GetPkgId().empty())
setenv("AUL_PKGID", app_info->GetPkgId().c_str(), 1);