ecore-drm : add ECORE_DRM_SKIP_LAUNCHER_CONNECT environment variable 94/86994/3
authorSung-Jin Park <sj76.park@samsung.com>
Tue, 6 Sep 2016 01:42:45 +0000 (10:42 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 6 Sep 2016 07:32:32 +0000 (00:32 -0700)
Add an environment variable to skip to connect to drm launcher.
Except the desktop environment, it's not necessary to connect to drm launcher.
If necessary, we can control whether to connect to drm launcher with this environment.

Change-Id: I628f7fa5771bc72af03c4ea1564a762bcfe0a2f7
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/modules/ecore_evas/engines/drm/ecore_evas_drm.c

index 0b3d6b5..dd2fa32 100755 (executable)
@@ -565,7 +565,7 @@ _ecore_evas_drm_init(const char *device)
           goto dev_err;
      }
 
-   if (!ecore_drm_launcher_connect(dev))
+   if (!getenv("ECORE_DRM_SKIP_LAUNCHER_CONNECT") && !ecore_drm_launcher_connect(dev))
      {
         ERR("Could not connect DRM launcher");
         goto launcher_err;