char *caller;
};
-static char *wayland_display = NULL;
-static char *xdg_runtime_dir = NULL;
-
static GList *_widget_instances = NULL;
static GList *_widget_apps = NULL;
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) {
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) {