You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bolt doesn't currently have a launch command per se, it uses either POSIX execv or Windows CreateProcessW. So a wrapper command would need me to change the way games are launched, or to implement a shell that can interpret all valid commands on all platforms (I'm definitely not doing that though).
If it's just for setting environment variables then it seems like it'd be much easier for you to either set them in your env globally or set them using flatseal? The only other advantage that I know of for launch commands is tools like obs-vkcapture, but even that would perform better if implemented as a plugin instead of a launch script (and wouldn't work on RS3 anyway due to an anticheat.) Are there any other use-cases than those?
gamemode and obs-vkcapture both work via LD_PRELOAD, so they could, in theory, be set like other environment variables, though it would still probably be better to have them as plugins (the flatpak override method works fine, but doing it globally is probably a bad idea considering that would mean everything would run with that, which makes gamemode redundant). The main thing that would need a plugin is gamescope, which must be run as a wrapper.
The issue I see with this solution is that I don't think it scales that well, as it means that any wrapper that someone is interested in would need to be manually added into the program. Maybe it would be better to rework internals to use system() (/bin/sh on Linux or cmd.exe on Windows), in which case the wrapper could be implemented similarly to how steam does it.
It would be nice if we could set a wrapper command. This would be useful for #68 (they could make the wrapper command be
env GDK_SCALE=2 GDK_DPI_SCALE=0.5
), as well as for using tools like https://github.com/FeralInteractive/gamemode and https://github.com/ValveSoftware/gamescope.The text was updated successfully, but these errors were encountered: