Commit 18a941bb authored by Chris Michael's avatar Chris Michael Committed by Carsten Haitzler (Rasterman)

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

Signed-off-by: default avatarChris Michael <>
parent 01fccf3f
......@@ -147,6 +147,10 @@ _ecore_evas_drm_init(Ecore_Evas *ee, Ecore_Evas_Engine_Drm_Data *edata, const ch
goto init_err;
/* NB: No seat name passed in, try to get from env */
if (!device) device = getenv("XDG_SEAT");
/* NB: fallback to seat0 if env var is not set */
if (!device) device = "seat0";
edata->dev = ecore_drm2_device_find(device, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment