<?xml version="1.0" encoding="utf-8"?>\r
-<manifest xmlns="http://tizen.org/ns/packages" package="@PKGNAME@" version="0.1.3" install-location="internal-only">\r
+<manifest xmlns="http://tizen.org/ns/packages" package="@PKGNAME@" version="0.1.4" install-location="internal-only">\r
<label>@PROJECT_NAME@</label>\r
<author email="yjoo93.park@samsung.com" href="www.samsung.com">Youngjoo Park</author>\r
<author email="seungtaek.chung@samsung.com" href="www.samsung.com">seungtaek chung</author>\r
Name: org.tizen.lockscreen
Summary: lockscreen application
-Version: 0.1.3
+Version: 0.1.4
Release: 1
Group: TBD
License: Apache
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(security-server)
BuildRequires: pkgconfig(ui-gadget-1)
+BuildRequires: pkgconfig(capi-system-info)
BuildRequires: cmake
BuildRequires: gettext
#include <app.h>
#include <vconf.h>
#include <Ecore_X.h>
+#include <system_info.h>
#include "lockscreen.h"
#include "util.h"
+#define QP_EMUL_STR "Emulator"
+
static void win_del(void *data, Evas_Object * obj, void *event)
{
elm_exit();
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
}
+static int _check_emul()
+{
+ int is_emul = 0;
+ char *info = NULL;
+
+ if (system_info_get_value_string(SYSTEM_INFO_KEY_MODEL, &info) == 0) {
+ if (info == NULL) return 0;
+ if (!strncmp(QP_EMUL_STR, info, strlen(info))) {
+ is_emul = 1;
+ }
+ }
+
+ if (info != NULL) free(info);
+
+ return is_emul;
+}
+
static bool app_create(void *data)
{
struct appdata *ad = data;
memset(&ad, 0x0, sizeof(struct appdata));
- setenv("ELM_ENGINE", "gl", 1);
+ if(!_check_emul()) {
+ setenv("ELM_ENGINE", "gl", 1);
+ }
return app_efl_main(&argc, &argv, &event_callback, &ad);
}