summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-12-01 15:32:35 -0500
committerChris Michael <cp.michael@samsung.com>2017-12-01 15:32:35 -0500
commit1711363725ab44e73414bebfb339d402333b4a4d (patch)
tree919ae36d2e2939fb819119eef82e9d0132d809d6 /src/modules
parent7658fc101f59a27a4cd18c8fb51c9ea38d9f2b4b (diff)
ecore-evas-drm: Check for XDG_SEAT existence
Small patch to allow specifying a different seat via XDG_SEAT env variable. If no seat name is passed as ecore_evas options, then we would always default to 'seat0'. As this may not be desirable in all situations, allow for an override via XDG_SEAT env var. ref T6455 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 99f2e8d113..73e3a45621 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -147,6 +147,10 @@ _ecore_evas_drm_init(Ecore_Evas *ee, Ecore_Evas_Engine_Drm_Data *edata, const ch
147 goto init_err; 147 goto init_err;
148 } 148 }
149 149
150 /* NB: No seat name passed in, try to get from env */
151 if (!device) device = getenv("XDG_SEAT");
152
153 /* NB: fallback to seat0 if env var is not set */
150 if (!device) device = "seat0"; 154 if (!device) device = "seat0";
151 155
152 edata->dev = ecore_drm2_device_open(device, 0); 156 edata->dev = ecore_drm2_device_open(device, 0);