summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaehyeon Jung <darrenh.jung@samsung.com>2017-03-03 16:19:42 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-07-17 03:05:27 +0000
commit045c3f28bcee9aa8f979fda1283f9211ed255da0 (patch)
tree8d75fb02d27638c5172453575a596d1a7aee0fc6
parentd4628199912483d647046a24dc41f3cee57fee62 (diff)
downloadwidget-service-045c3f28bcee9aa8f979fda1283f9211ed255da0.tar.gz
widget-service-045c3f28bcee9aa8f979fda1283f9211ed255da0.tar.bz2
widget-service-045c3f28bcee9aa8f979fda1283f9211ed255da0.zip
Remove unnecessary wayland env set
- When ECORE_EVAS_EXTN_SOCKET_ENGINE=wayland_egl set, an application failed to get WAYLAND_DISPLAY env - WAYLAND_DISPLAY no longer required for widget. Change-Id: Idef9f28c4f3491a2fb25fb332cb3b1e063c81245
-rw-r--r--src/widget_instance.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/widget_instance.c b/src/widget_instance.c
index c298a1e..6e83e1a 100644
--- a/src/widget_instance.c
+++ b/src/widget_instance.c
@@ -83,9 +83,6 @@ struct _sdk_util {
char *caller;
};
-static char *wayland_display = NULL;
-static char *xdg_runtime_dir = NULL;
-
static GList *_widget_instances = NULL;
static GList *_widget_apps = NULL;
@@ -410,22 +407,6 @@ EAPI int widget_instance_launch(const char *instance_id, char *content_info, int
return -1;
}
- if (xdg_runtime_dir == NULL) {
- xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
- if (xdg_runtime_dir == NULL) {
- _E("failed to get XDG_RUNTIME_DIR");
- return -1;
- }
- }
-
- if (wayland_display == NULL) {
- wayland_display = getenv("WAYLAND_DISPLAY");
- if (wayland_display == NULL) {
- _E("unable to get wayland display port");
- return -1;
- }
- }
-
instance = __pick_instance(instance_id);
if (instance == NULL) {
@@ -442,8 +423,6 @@ EAPI int widget_instance_launch(const char *instance_id, char *content_info, int
snprintf(pid_buf, sizeof(pid_buf), "%d", getpid());
bundle_add_str(b, WIDGET_K_CALLER, pid_buf);
bundle_add_str(b, WIDGET_K_ENDPOINT, viewer_appid);
- bundle_add_str(b, AUL_K_WAYLAND_DISPLAY, wayland_display);
- bundle_add_str(b, AUL_K_WAYLAND_WORKING_DIR, xdg_runtime_dir);
bundle_add_str(b, WIDGET_K_OPERATION, "create");
if (sdk_util.name) {