summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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);