From e57a00da5340124677b4c2d8f18dab5639704890 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 7 Aug 2014 10:10:45 -0400 Subject: [PATCH] elementary: Handle case where ELM_ENGINE environment variable is misspelled. In case someone exports the ELM_ENGINE to be wayland-shm or wayland-egl, let's handle That case also. Typically it is set to wayland_shm or wayland_egl but since we check variants of spelling for other engines also, then let's check it for the wayland engines too. @fix Signed-off-by: Chris Michael --- src/lib/elm_config.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c index 0804fb7..a74c49c 100644 --- a/src/lib/elm_config.c +++ b/src/lib/elm_config.c @@ -1979,9 +1979,11 @@ _env_get(void) eina_stringshare_replace(&_elm_config->engine, s); else if ((!strcasecmp(s, "ews"))) eina_stringshare_replace(&_elm_config->engine, ELM_EWS); - else if ((!strcasecmp(s, "wayland_shm"))) + else if ((!strcasecmp(s, "wayland_shm")) || + (!strcasecmp(s, "wayland-shm"))) eina_stringshare_replace(&_elm_config->engine, ELM_WAYLAND_SHM); - else if ((!strcasecmp(s, "wayland_egl"))) + else if ((!strcasecmp(s, "wayland_egl")) || + (!strcasecmp(s, "wayland-egl"))) eina_stringshare_replace(&_elm_config->engine, ELM_WAYLAND_EGL); else if ((!strcasecmp(s, "drm"))) eina_stringshare_replace(&_elm_config->engine, ELM_DRM); -- 2.7.4