renpy
renpy copied to clipboard
[Question] Linux version (Flatpak | Wayland)
My two question are pretty simple, First : i have read that SDL2 who is used in renpy is capable to render directly on wayland (so ignoring xwayland) is renpy launcher launch on wayland or does it use the Xwayland to actually work ? If it use xwayland does in the next major version (8) will it be using Wayland by default ?
Second : Do you think it's possible to make a flatpak of the launcher and publish it on flathub. Like that you generate only 1 version of the package and it erase the actual way where some distro isn't up to date with renpy.
Thanks for the answer.
Sorry for the delay getting back.
I suspect support for wayland will be coming eventually, though probably not until after 8.0/7.5.
I don't have plans to make flatpaks, but the .tar.bz2 on the Ren'Py site should work with most modern distros, as it carries the vast majority of libraries that Ren'Py uses.
Sorry for the delay getting back.
I suspect support for wayland will be coming eventually, though probably not until after 8.0/7.5.
I don't have plans to make flatpaks, but the .tar.bz2 on the Ren'Py site should work with most modern distros, as it carries the vast majority of libraries that Ren'Py uses.
Thanks for the answer hope to see a native (if it not already the case) wayland support, for the flatpak i asked only for a more secure experence sandboxed, if i PR a firejail profile do you think it will be accepted ?
And if i manage to create a flatpak myself, do you think it can be added as "unofficial" version on the website ?
I'd strongly consider a firejail profile.
I don't really want to promote unofficial versions on renpy.org, but if you can come up with reasonable scripting to make it, I'd be very interested in adding that to the build process.
Marking as an enhancement for the wayland support. I don't plan on working on flatpack or firejail, but would accept scripting, as described above.
@renpytom after some test i have a renpy.profile who seem to work : The two last line are spaced & commented because not everyone want them ("net none" disable internet, "x11 none" force wayland only mode (on gnome decoration are missing). in this config i take the default that renpy launcher is in "/opt/renpy" & the game are in "/opt/renpy/Games"
include disable-common.inc include disable-devel.inc include disable-exec.inc include disable-passwdmgr.inc include disable-programs.inc caps.drop all nodvd nonewprivs noroot nosound notv nou2f seccomp seccomp.block-secondary shell none noexec ${HOME} noexec /opt/renpy/Games private-dev private-tmp whitelist ${HOME}/.renpy whitelist /opt/renpy
#net none #x11 none
for the desktop entry i have :
[Desktop Entry] Encoding=UTF-8 Name=Renpy Comment=Renpy Launcher Exec=/usr/bin/firejail --profile=/opt/renpy/renpy.profile /opt/renpy/renpy.sh Icon=/opt/renpy/renpy.png Type=Application Categories=Utility;Application;
Renpy has native wayland on versión 7.4, just export SDL_VIDEODRIVER=wayland. Unfortunately is versión 7.4.x only as later versions complains about sdl not having the wayland driver available
Try using this export SDL_DYNAMIC_API=/usr/lib64/libSDL2-2.0.so and export SDL_VIDEODRIVER=wayland
@lavilao is there some reason why SDL_DYNAMIC_API is needed? Shouldn't it be loading in the system SDL in automatically if it's available? I'm not too interested in poking around the codebase to see what it does to override it, so asking here.
@lavilao is there some reason why
SDL_DYNAMIC_APIis needed? Shouldn't it be loading in the system SDL in automatically if it's available? I'm not too interested in poking around the codebase to see what it does to override it, so asking here.
It does not use the system sdl by default thats why SDL_DYNAMIC_API is needed, if You don't use it it Will throw an error saying that wayland is not available.