Section: utils
Priority: extra
Maintainer: Jin Yoon <jinny.yoon@samsung.com>
-Build-Depends: debhelper (>= 5), libelm-dev, libslp-utilx-dev, libslp-setting-dev, libefreet-dev, libslp-sysman-dev, libslp-pm-dev, dlog-dev, libecore-dev, libaul-1-dev, libpkgmgr-client-dev, syspopup-caller-dev, libheynoti-dev, libail-0-dev, librua-dev, libslp-shortcut-dev, menu-daemon, capi-appfw-application-dev, libbadge-dev, pkgmgr-info-dev
+Build-Depends: debhelper (>= 5), libelm-dev, libslp-utilx-dev, libslp-setting-dev, libefreet-dev, libslp-sysman-dev, libslp-pm-dev, dlog-dev, libecore-dev, libaul-1-dev, libpkgmgr-client-dev, syspopup-caller-dev, libheynoti-dev, libail-0-dev, librua-dev, libslp-shortcut-dev, menu-daemon, capi-appfw-application-dev, libbadge-dev, pkgmgr-info-dev, capi-system-info-dev
Homepage: N/A
Standards-Version: 0.1.0
Package: org.tizen.menu-screen
Section: utils
Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libelm, libeina, libslp-utilx-0, libslp-setting-0, libefreet, libslp-sysman, libslp-pm-0, libdlog-0, libaul-1, libpkgmgr-client-0, syspopup-caller-0, libheynoti-0, libail-0, menu-daemon, capi-appfw-application, libbadge, pkgmgr-info
+Depends: ${shlibs:Depends}, ${misc:Depends}, libelm, libeina, libslp-utilx-0, libslp-setting-0, libefreet, libslp-sysman, libslp-pm-0, libdlog-0, libaul-1, libpkgmgr-client-0, syspopup-caller-0, libheynoti-0, libail-0, menu-daemon, capi-appfw-application, libbadge, pkgmgr-info, capi-system-info
Description: inhouse menu-screen
Package: org.tizen.menu-screen-dbg
-#include <Elementary.h>
-#include <Ecore_X.h>
#include <ail.h>
#include <app.h>
+#include <aul.h>
+#include <Ecore_X.h>
+#include <Elementary.h>
#include <stdbool.h>
-#include <vconf.h>
+#include <system_info.h>
#include <utilX.h>
-#include <aul.h>
+#include <vconf.h>
#include "conf.h"
#include "item.h"
+#define QP_EMUL_STR "Emulator"
+static bool _is_emulator_on(void)
+{
+ char *info;
+
+ if (system_info_get_value_string(SYSTEM_INFO_KEY_MODEL, &info) == 0) {
+ if (info == NULL) return false;
+ if (!strncmp(QP_EMUL_STR, info, strlen(info))) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+
+
int main(int argc, char *argv[])
{
char *buf;
app_event_callback_s event_callback;
- buf = vconf_get_str(MENU_SCREEN_ENGINE);
- if (buf) {
- _D("ELM_ENGINE is set as [%s]\n", buf);
- setenv("ELM_ENGINE", buf, 1);
- free(buf);
+ if (_is_emulator_on()) {
+ _D("ELM_ENGINE is set as [software_x11]");
} else {
- _D("ELM_ENGINE is set as [%s]", "gl");
- setenv("ELM_ENGINE", "gl", 1);
+ buf = vconf_get_str(MENU_SCREEN_ENGINE);
+ if (buf) {
+ _D("ELM_ENGINE is set as [%s]", buf);
+ setenv("ELM_ENGINE", buf, 1);
+ free(buf);
+ } else {
+ _D("ELM_ENGINE is set as [gl]");
+ setenv("ELM_ENGINE", "gl", 1);
+ }
}
_init(&event_callback);