elementary: Handle case where ELM_ENGINE environment variable is
authorChris Michael <cp.michael@samsung.com>
Thu, 7 Aug 2014 14:10:45 +0000 (10:10 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 7 Aug 2014 14:10:45 +0000 (10:10 -0400)
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 <cp.michael@samsung.com>
legacy/elementary/src/lib/elm_config.c

index 0804fb7..a74c49c 100644 (file)
@@ -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);