Skip to content

Commit 90f64e6

Browse files
authored
Merge pull request #3642 from gizmo98/wayland
emulationstation: modify wayland detection
2 parents abd614a + 88dafca commit 90f64e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/supplementary/emulationstation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ if [[ "\$(uname --machine)" != *86* ]]; then
257257
fi
258258
259259
# use SDL2 wayland video driver if wayland session is detected
260-
[[ "$XDG_SESSION_TYPE" == "wayland" ]] && export SDL_VIDEODRIVER=wayland
260+
[[ "\$WAYLAND_DISPLAY" == wayland* ]] && export SDL_VIDEODRIVER=wayland
261261
262262
# save current tty/vt number for use with X so it can be launched on the correct tty
263263
TTY=\$(tty)

0 commit comments

Comments
 (0)