#include <app.h>
#define APP_TRAY_PKG_NAME "org.tizen.app-tray"
-#define MENU_SCREEN_PKG_NAME "org.tizen.menu-screen"
#define PROVIDER_PKG_NAME "org.tizen.data-provider-master"
#define CLUSTER_HOME_PKG_NAME "org.tizen.cluster-home"
#define EASY_HOME_PKG_NAME "org.tizen.easy-home"
#define EASY_APPS_PKG_NAME "org.tizen.easy-apps"
#define ISE_DEFAULT_PKG_NAME "ise-default"
-#ifdef TIZEN_PROFILE_COMMON
-#define HOMESCREEN_PKG_NAME "org.tizen.homescreen-efl"
-#elif TIZEN_PROFILE_MOBILE
+#ifdef TIZEN_PROFILE_MOBILE
#define HOMESCREEN_PKG_NAME "org.tizen.homescreen-efl"
+#define MENU_SCREEN_PKG_NAME "org.tizen.menu-screen"
#elif TIZEN_PROFILE_WEARABLE
#define IDLE_CLOCK_PKG_NAME "org.tizen.classic-watch"
#define HOMESCREEN_PKG_NAME "org.tizen.w-home"
}
-
-static int _change_home_cb(const char *appid, const char *key, const char *value, void *cfn, void *afn)
+/* Remove change home callback as no alternative home app in IoT profile */
+/*static int _change_home_cb(const char *appid, const char *key, const char *value, void *cfn, void *afn)
{
if (!strcmp(appid, MENU_SCREEN_PKG_NAME)) {
_E("We cannot do anything anymore.");
if (vconf_set_str(VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME, MENU_SCREEN_PKG_NAME) != 0) {
_E("cannot set the vconf key as %s", MENU_SCREEN_PKG_NAME);
}
- /* change_home func will be called by changing the home */
+ // change_home func will be called by changing the home
return 0;
}
_E("cannot change home");
return -1;
-}
+}*/
home_appid = appid;
}
ret_if(!home_appid);
-
- process_mgr_must_launch(home_appid, key, val, _change_home_cb, _after_launch_home);
+ process_mgr_must_launch(home_appid, key, val, NULL, _after_launch_home);
}
_E("Failed to get vconfkey : %s", VCONFKEY_STARTER_IS_FALLBACK);
}
- if (is_fallback) {
+ /* No need to set fallback package as no alternative home app in IoT profile */
+ /*if (is_fallback) {
if (vconf_set_int(VCONFKEY_STARTER_IS_FALLBACK, 0)) {
_E("Failed to set vconfkey : %s", VCONFKEY_STARTER_IS_FALLBACK);
}
-
if (!strcmp(status_active_get()->setappl_selected_package_name, MENU_SCREEN_PKG_NAME)) {
char *fallback_pkg;
-
fallback_pkg = vconf_get_str(VCONFKEY_STARTER_FALLBACK_PKG);
_D("fallback pkg : %s", fallback_pkg);
if (fallback_pkg) {
_E("Failed to get vconfkey : %s", VCONFKEY_STARTER_FALLBACK_PKG);
}
}
- }
+ }*/
home_mgr_open_home(NULL, NULL, NULL);
// we need to launch softkey after home-screen.
}
ret_if(!home_appid);
- process_mgr_must_launch(home_appid, HOME_TERMINATED, ISTRUE, _change_home_cb, _launch_after_home);
+ process_mgr_must_launch(home_appid, HOME_TERMINATED, ISTRUE, NULL, _launch_after_home);
}
_D("Change homescreen package to default");
/* set fallback status */
- if (vconf_set_int(VCONFKEY_STARTER_IS_FALLBACK, 1) < 0) {
+ /* No need to set fallback package as no alternative home app in IoT profile */
+ /*if (vconf_set_int(VCONFKEY_STARTER_IS_FALLBACK, 1) < 0) {
_E("Failed to set vconfkey : %s", VCONFKEY_STARTER_IS_FALLBACK);
}
if (vconf_set_str(VCONFKEY_STARTER_FALLBACK_PKG, appid) < 0) {
_E("Failed to set vconfkey : %s", VCONFKEY_STARTER_FALLBACK_PKG);
- }
+ }*/
strncpy(title, _("IDS_COM_POP_WARNING"), sizeof(title));
title[sizeof(title) - 1] = '\0';
}
}
- if (vconf_set_str(VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME, MENU_SCREEN_PKG_NAME) != 0) {
- _E("cannot set the vconf key as %s", MENU_SCREEN_PKG_NAME);
+ /*if (vconf_set_str(VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME, appid) != 0) {
+ _E("cannot set the vconf key as %s", appid);
return ECORE_CALLBACK_RENEW;
- }
+ }*/
+ home_mgr_relaunch_homescreen();
}
s_home_mgr.dead_timer = NULL;
{
ret_if(!node);
- _set_str_with_default(node, HOMESCREEN_PKG_NAME,
+ char *fallback_pkg = vconf_get_str(VCONFKEY_STARTER_FALLBACK_PKG);
+ _set_str_with_default(node, fallback_pkg,
s_status_active.setappl_selected_package_name);
if (!s_status_active.setappl_selected_package_name)
_E("Package name is NULL");
}
if (!(s_status_active.setappl_selected_package_name = vconf_get_str(VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME))) {
_E("Failed to get vconfkey[%s]", VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME);
- s_status_active.setappl_selected_package_name = strdup(HOMESCREEN_PKG_NAME);
- if (!s_status_active.setappl_selected_package_name) {
- _E("Failed to duplicate string");
- }
}
if (vconf_notify_key_changed(VCONFKEY_SETAPPL_SCREEN_LOCK_TYPE_INT, _setappl_screen_lock_type_cb, NULL) < 0) {