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>
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_open(device, 0);