renpy / renpy-build

Build system for the Ren'Py visual novel engine. (The engine itself, not games.)
76 stars 51 forks source link

Re-enable Wayland for Linux #60

Closed riyfu closed 1 year ago

riyfu commented 1 year ago

Renpy 7.4.11 runs under Wayland with environment variable export SDL_VIDEODRIVER=wayland. With 7.5.0 and up this gives error: wayland not available (previously mentioned in a comment on renpy issue #3290).

My guess is this is the result of e8c4cbc01063068a68081a44a5b804749e384150 changing tasks/sdl2.py so --disable-video-wayland is set unconditionally rather than when {% if c.platform == "android" %}.

Could Wayland be re-enabled? I've played several games using Wayland+7.4.11 and not noticed any issues.

Edit: It's also possible to run native Wayland versions of 7.5.x by overriding renpy's SDL with e.g. export SDL_DYNAMIC_API=/usr/lib64/libSDL2-2.0.so.0